{"_id":"@benjie/pg-connection-string","_rev":"2-b29969463ce1c0e42a88e7498dab09cc","name":"@benjie/pg-connection-string","dist-tags":{"latest":"2.3.1-fork.1"},"versions":{"2.3.1-fork.0":{"name":"@benjie/pg-connection-string","version":"2.3.1-fork.0","description":"Functions for dealing with a PostgresSQL connection string","main":"./index.js","types":"./index.d.ts","scripts":{"test":"istanbul cover _mocha && npm run check-coverage","check-coverage":"istanbul check-coverage --statements 100 --branches 100 --lines 100 --functions 100","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"repository":{"type":"git","url":"git://github.com/brianc/node-postgres.git"},"keywords":["pg","connection","string","parse"],"author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com/"},"license":"MIT","bugs":{"url":"https://github.com/iceddev/pg-connection-string/issues"},"homepage":"https://github.com/iceddev/pg-connection-string","devDependencies":{"chai":"^4.1.1","coveralls":"^3.0.4","istanbul":"^0.4.5","mocha":"^7.1.2"},"_id":"@benjie/pg-connection-string@2.3.1-fork.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fMkRrx1H3nLqcfV/6NJxkRPYNOHH8eZUJjKTuEtfg2N6ulC1h5ElxFMVRKak6v9jAcsCwIcOw+DMevcuvzaFHQ==","shasum":"91ca1f94324c72643bf7e95b4602adf1299fb012","tarball":"https://registry.npmjs.org/@benjie/pg-connection-string/-/pg-connection-string-2.3.1-fork.0.tgz","fileCount":5,"unpackedSize":8427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWl0qCRA9TVsSAnZWagAA6cIQAJDAwGjvUDHYOrVSz/1h\nLabfqVuYEPmBLyoQolwBvTmzYjEwhTt5mBSsRQX2/lnxNie2JZZHJtWqk4kX\nO+H1iApCD8boV+eJsvKMhOoVx92vJhMosWrSahTxjPE2ZNMlP3661pnJJw+T\n5IVcsersgvsitqIuQMSi03Cc1EV6Y2JucZUdJtN+xvAmtnjvSxzMkFMo3dAO\nitsS8j8IVQAF0OT8a2DcQzOU5kLNHV1XWhIb+ZSxzp9S6KKDaxltDbeUBNCq\nF6uE18cI8wccvBW5DSfwuQ20m72mtS1Ehy4N31mwvjll4Zczb5QVj1rqnjsF\nsJypl42mECxSp1dKKYF+jIhZSb1INFDAqULzg159wBFGbPvstiZ/T3vyBlkk\nVL15adnCfL7tWUFHouFyyMY3wzB6QVbj7mGgu+1ug+F7PAf/bTuH1Q0Pk52C\n6ff5pJQW69mIqW+kXADyq53mOWJ+kq8jw2YBE5SM0QzwUkVko5fdbi4Yr1is\nZwgjXgpizwVirKxSNn+RmUmQzlxNgqvihYQnI0IQGuMpMvnjFTOYfJqx5iCi\n/wRqVDgEZw1K+22xYwT8LAiz+bgpVofoxCtTWHhLaihWyTMNZYx7OlSKDmiy\n7wovWwLdvWGVSklZeclha18vcleIoH895Wo+m9ypCnBJinvw5WH7c80uxNZ8\nMKN2\r\n=CrZk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7N9E+C5O1AWq37LeMhP/dpWasdSEy0msoOS++i5+I+AiEA3WWxARztWXJZi0wqk9/z+G3ISvmJZrALeDbKs8YbgxY="}]},"maintainers":[{"name":"benjie","email":"npm@benjiegillam.com"}],"_npmUser":{"name":"benjie","email":"npm@benjiegillam.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pg-connection-string_2.3.1-fork.0_1599757610369_0.9688917089453009"},"_hasShrinkwrap":false},"2.3.1-fork.1":{"name":"@benjie/pg-connection-string","version":"2.3.1-fork.1","description":"Functions for dealing with a PostgresSQL connection string","main":"./index.js","types":"./index.d.ts","scripts":{"test":"istanbul cover _mocha && npm run check-coverage","check-coverage":"istanbul check-coverage --statements 100 --branches 100 --lines 100 --functions 100","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"},"repository":{"type":"git","url":"git://github.com/brianc/node-postgres.git"},"keywords":["pg","connection","string","parse"],"author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com/"},"license":"MIT","bugs":{"url":"https://github.com/iceddev/pg-connection-string/issues"},"homepage":"https://github.com/iceddev/pg-connection-string","devDependencies":{"chai":"^4.1.1","coveralls":"^3.0.4","istanbul":"^0.4.5","mocha":"^7.1.2"},"_id":"@benjie/pg-connection-string@2.3.1-fork.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tbd3BtQ4OBbjqSVicBXq5TOkrcsczlIVoxrXwW65FiiKAFp+HtFn462gTZKa3xyZtTJ8UPDyWKE/K7VXIa6VnQ==","shasum":"615c9d9b8861fcb5beb20056cfedee89f0583905","tarball":"https://registry.npmjs.org/@benjie/pg-connection-string/-/pg-connection-string-2.3.1-fork.1.tgz","fileCount":5,"unpackedSize":8371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWmNRCRA9TVsSAnZWagAAUmYP/jZfri/TAzUaxnI/6I5M\ny2sZbdH0BhwvGILSRgtiMsYjzsDYY8GEaTsElrqUre7UnCQlPPvJoEByFWre\nVe9mO0WHiZiPMCC5GoTfpK2GLXeABNelUF13qmCnEeld9aVIdgwv0oDKq69F\nfM5EFHfIUB5AC0wSHCP8bKksK99tcFEdKILHbQyfa8rcnLfWdG4agc6m93Vg\ne10Ir5vCp4BzabxW3aZaL+iT7biLDB3LyplThmlf5aPlypt5kieN3QsnWW5a\nA0HODcFgrWQbj27fJa+HinQ/h1Gi+P+uJjwemhxwMttA89ORGkb0MKVy/NLK\nJB5LaywzbgFC+uOKJ4ZAc+n6GdtCYSAeHfRTpziOBiSC9x8JI+MmPXj2QHes\ng++rfg3hwLBTFX0TT9cW5hS+iObyN34iZoTtEqPCVIKxAyfAkh8Y4hxJkGVd\nFuGDRgHD6E04WYM9XnLdho8wEZuU6KSP+yWSjTE2/Fze2e2vRrlV+WDeYNCS\ntwuLm4v5yniGVWrZ9P1h5lgKW4rRYBnJdiIPWgrHZKgSe8sjk2AHJvR3ffJy\nMpyIput2er0TIaF3n6fOz2RfEi0mZ9qtbX6VfiAYyWV9BSpW4oojM5u7LFPj\nG1GC5Qhd00MwTYq0sXzD2gQ30PYPq7XSJxABP8spVSI5Xx8teOdYn0mYTqJN\nIRYG\r\n=r5H8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvcHJnacsYpqyyL2azmA6tk5dtDVbK9GsJDyAqzPSStwIhAKfbeIHiJOHL/c+3mKs6QTA0Vr+FGpqMQ3qi4tvHy1/U"}]},"maintainers":[{"name":"benjie","email":"npm@benjiegillam.com"}],"_npmUser":{"name":"benjie","email":"npm@benjiegillam.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pg-connection-string_2.3.1-fork.1_1599759185181_0.745049991349938"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-10T17:06:50.324Z","2.3.1-fork.0":"2020-09-10T17:06:50.504Z","modified":"2022-04-04T18:22:58.988Z","2.3.1-fork.1":"2020-09-10T17:33:05.380Z"},"maintainers":[{"name":"benjie","email":"npm@benjiegillam.com"}],"description":"Functions for dealing with a PostgresSQL connection string","homepage":"https://github.com/iceddev/pg-connection-string","keywords":["pg","connection","string","parse"],"repository":{"type":"git","url":"git://github.com/brianc/node-postgres.git"},"author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com/"},"bugs":{"url":"https://github.com/iceddev/pg-connection-string/issues"},"license":"MIT","readme":"pg-connection-string\n====================\n\n[![NPM](https://nodei.co/npm/pg-connection-string.png?compact=true)](https://nodei.co/npm/pg-connection-string/)\n\n[![Build Status](https://travis-ci.org/iceddev/pg-connection-string.svg?branch=master)](https://travis-ci.org/iceddev/pg-connection-string)\n[![Coverage Status](https://coveralls.io/repos/github/iceddev/pg-connection-string/badge.svg?branch=master)](https://coveralls.io/github/iceddev/pg-connection-string?branch=master)\n\nFunctions for dealing with a PostgresSQL connection string\n\n`parse` method taken from [node-postgres](https://github.com/brianc/node-postgres.git)\nCopyright (c) 2010-2014 Brian Carlson (brian.m.carlson@gmail.com)\nMIT License\n\n## Usage\n\n```js\nvar parse = require('pg-connection-string').parse;\n\nvar config = parse('postgres://someuser:somepassword@somehost:381/somedatabase')\n```\n\nThe resulting config contains a subset of the following properties:\n\n* `host` - Postgres server hostname or, for UNIX doamain sockets, the socket filename\n* `port` - port on which to connect\n* `user` - User with which to authenticate to the server\n* `password` - Corresponding password\n* `database` - Database name within the server\n* `client_encoding` - string encoding the client will use\n* `ssl`, either a boolean or an object with properties\n  * `cert`\n  * `key`\n  * `ca`\n* any other query parameters (for example, `application_name`) are preserved intact.\n\n## Connection Strings\n\nThe short summary of acceptable URLs is:\n\n * `socket:<path>?<query>` - UNIX domain socket\n * `postgres://<user>:<password>@<host>:<port>/<database>?<query>` - TCP connection\n\nBut see below for more details.\n\n### UNIX Domain Sockets\n\nWhen user and password are not given, the socket path follows `socket:`, as in `socket:/var/run/pgsql`.\nThis form can be shortened to just a path: `/var/run/pgsql`.\n\nWhen user and password are given, they are included in the typical URL positions, with an empty `host`, as in `socket://user:pass@/var/run/pgsql`.\n\nQuery parameters follow a `?` character, including the following special query parameters:\n\n * `db=<database>` - sets the database name (urlencoded)\n * `encoding=<encoding>` - sets the `client_encoding` property\n\n### TCP Connections\n\nTCP connections to the Postgres server are indicated with `pg:` or `postgres:` schemes (in fact, any scheme but `socket:` is accepted).\nIf username and password are included, they should be urlencoded.\nThe database name, however, should *not* be urlencoded.\n\nQuery parameters follow a `?` character, including the following special query parameters:\n * `host=<host>` - sets `host` property, overriding the URL's host\n * `encoding=<encoding>` - sets the `client_encoding` property\n * `ssl=1`, `ssl=true`, `ssl=0`, `ssl=false` - sets `ssl` to true or false, accordingly\n * `sslcert=<filename>` - reads data from the given file and includes the result as `ssl.cert`\n * `sslkey=<filename>` - reads data from the given file and includes the result as `ssl.key`\n * `sslrootcert=<filename>` - reads data from the given file and includes the result as `ssl.ca`\n\nA bare relative URL, such as `salesdata`, will indicate a database name while leaving other properties empty.\n","readmeFilename":"README.md"}