Explode DATABASE_URL into its constituent PG* variables
npm install pgexplodeUses pg-connection-string
to assemble libpq environment
variables.
Run pgexplode in a subshell along with the command that consumes the
variables it sets in order to avoid polluting your environment:
``bash``
(export $(DATABASE_URL="postgres://host/db?ssl=true" pgexplode | xargs) && psql)