{"_id":"pgpass","_rev":"2006953","name":"pgpass","description":"Module for reading .pgpass","dist-tags":{"latest":"1.0.5"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"time":{"modified":"2021-12-19T11:56:15.000Z","created":"2013-12-17T23:03:58.091Z","1.0.5":"2021-12-19T11:51:52.599Z","1.0.4":"2020-10-22T09:35:11.441Z","1.0.3":"2020-10-22T09:27:10.959Z","1.0.2":"2017-05-21T11:07:09.407Z","1.0.1":"2016-08-01T18:53:35.827Z","1.0.0":"2016-07-30T09:03:46.956Z","0.0.6":"2016-06-06T19:46:46.398Z","0.0.5":"2016-06-06T06:37:49.615Z","0.0.3":"2014-04-09T21:34:50.739Z","0.0.2":"2014-03-09T08:28:32.129Z","0.0.1":"2013-12-17T23:03:58.091Z"},"users":{"i-erokhin":true},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"repository":{"type":"git","url":"git+https://github.com/hoegaarden/pgpass.git"},"versions":{"1.0.5":{"name":"pgpass","version":"1.0.5","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","_hint":"jshint --exclude node_modules --verbose lib test","_test":"mocha --recursive -R list","_covered_test":"nyc --reporter html --reporter text \"$npm_execpath\" run _test","test":"\"$npm_execpath\" run _hint && \"$npm_execpath\" run _covered_test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"MIT","dependencies":{"split2":"^4.1.0"},"devDependencies":{"jshint":"^2.12.0","mocha":"^8.2.0","nyc":"^15.1.0","pg":"^8.4.1","pg-escape":"^0.2.0","pg-native":"3.0.0","resumer":"0.0.0","tmp":"^0.2.1","which":"^2.0.2"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"git+https://github.com/hoegaarden/pgpass.git"},"gitHead":"4230ed5e417ba6044ea7eb80b7c33db9ec301398","homepage":"https://github.com/hoegaarden/pgpass#readme","_id":"pgpass@1.0.5","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"shasum":"9b873e4a564bb10fa7a7dbd55312728d422a223d","size":4280,"noattachment":false,"key":"/pgpass/-/pgpass-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-1.0.5.tgz"},"_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"directories":{},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pgpass_1.0.5_1639914712433_0.08538203135044942"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T11:52:07.782Z","publish_time":1639914712599,"_cnpm_publish_time":1639914712599},"1.0.4":{"name":"pgpass","version":"1.0.4","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","_hint":"jshint --exclude node_modules --verbose lib test","_test":"mocha --recursive -R list","_covered_test":"nyc --reporter html --reporter text \"$npm_execpath\" run _test","test":"\"$npm_execpath\" run _hint && \"$npm_execpath\" run _covered_test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"MIT","dependencies":{"split2":"^3.1.1"},"devDependencies":{"jshint":"^2.12.0","mocha":"^8.2.0","nyc":"^15.1.0","pg":"^8.4.1","pg-escape":"^0.2.0","pg-native":"3.0.0","resumer":"0.0.0","tmp":"^0.2.1","which":"^2.0.2"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"git+https://github.com/hoegaarden/pgpass.git"},"gitHead":"fcff132123e03097a43e44a2514acbcec73bb92e","homepage":"https://github.com/hoegaarden/pgpass#readme","_id":"pgpass@1.0.4","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"shasum":"85eb93a83800b20f8057a2b029bf05abaf94ea9c","size":4296,"noattachment":false,"key":"/pgpass/-/pgpass-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-1.0.4.tgz"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pgpass_1.0.4_1603359311331_0.8023756032106679"},"_hasShrinkwrap":false,"publish_time":1603359311441,"_cnpm_publish_time":1603359311441},"1.0.3":{"name":"pgpass","version":"1.0.3","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","_hint":"jshint --exclude node_modules --verbose lib test","_test":"mocha --recursive -R list","_covered_test":"nyc --reporter html --reporter text \"$npm_execpath\" run _test","test":"\"$npm_execpath\" run _hint && \"$npm_execpath\" run _covered_test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"MIT","dependencies":{"split2":"^3.1.1"},"devDependencies":{"jshint":"^2.12.0","mocha":"^8.2.0","nyc":"^15.1.0","pg":"^8.4.1","pg-escape":"^0.2.0","pg-native":"3.0.0","resumer":"0.0.0","tmp":"^0.2.1","which":"^2.0.2"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"git+https://github.com/hoegaarden/pgpass.git"},"gitHead":"c88a4a8d209b8794f162d7a93f90f2cc2c18cfa9","homepage":"https://github.com/hoegaarden/pgpass#readme","_id":"pgpass@1.0.3","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"shasum":"213dbd36b71d52fa7c3ba964097921dda1a49189","size":25875,"noattachment":false,"key":"/pgpass/-/pgpass-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-1.0.3.tgz"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pgpass_1.0.3_1603358830836_0.16934076069103265"},"_hasShrinkwrap":false,"publish_time":1603358830959,"_cnpm_publish_time":1603358830959},"1.0.2":{"name":"pgpass","version":"1.0.2","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","test":"npm run hint && mocha --recursive -R list && npm run coverage","coverage":"rm -rf -- lib-cov ; jscoverage lib lib-cov && mocha --recursive -R html-cov > coverage.html","hint":"jshint --verbose lib test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"MIT","dependencies":{"split":"^1.0.0"},"devDependencies":{"jscoverage":"^0.6.0","jshint":"^2.9.2","mocha":"^2.5.3","pg":"^4.5.6","pg-escape":"^0.2.0","pg-native":"^1.10.0","resumer":"0.0.0","tmp":"0.0.28","which":"^1.2.10"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"git+https://github.com/hoegaarden/pgpass.git"},"gitHead":"d1ccb8e99efcea8dce6036fd06ee9f48a85b96d0","homepage":"https://github.com/hoegaarden/pgpass#readme","_id":"pgpass@1.0.2","_shasum":"2a7bb41b6065b67907e91da1b07c1847c877b306","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"dist":{"shasum":"2a7bb41b6065b67907e91da1b07c1847c877b306","size":4346,"noattachment":false,"key":"/pgpass/-/pgpass-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-1.0.2.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pgpass-1.0.2.tgz_1495364828344_0.8687750454992056"},"directories":{},"publish_time":1495364829407,"_hasShrinkwrap":false,"_cnpm_publish_time":1495364829407},"1.0.1":{"name":"pgpass","version":"1.0.1","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","test":"npm run hint && mocha --recursive -R list && npm run coverage","coverage":"rm -rf -- lib-cov ; jscoverage lib lib-cov && mocha --recursive -R html-cov > coverage.html","hint":"jshint --verbose lib test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"MIT","dependencies":{"split":"^1.0.0"},"devDependencies":{"jscoverage":"^0.6.0","jshint":"^2.9.2","mocha":"^2.5.3","pg":"^4.5.6","pg-escape":"^0.2.0","pg-native":"^1.10.0","resumer":"0.0.0","tmp":"0.0.28","which":"^1.2.10"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"https://github.com/hoegaarden/pgpass.git"},"gitHead":"504c267eeff2aaff0d38b626a8c62d2606207b86","homepage":"https://github.com/hoegaarden/pgpass","_id":"pgpass@1.0.1","_shasum":"0de8b5bef993295d90a7e17d976f568dcd25d49f","_from":".","_npmVersion":"1.4.24","_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"dist":{"shasum":"0de8b5bef993295d90a7e17d976f568dcd25d49f","size":9193,"noattachment":false,"key":"/pgpass/-/pgpass-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pgpass-1.0.1.tgz_1470077614991_0.0017669571097940207"},"directories":{},"publish_time":1470077615827,"_cnpm_publish_time":1470077615827,"_hasShrinkwrap":false},"1.0.0":{"name":"pgpass","version":"1.0.0","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","test":"npm run hint && mocha --recursive -R list && npm run coverage","coverage":"rm -rf -- lib-cov ; jscoverage lib lib-cov && mocha --recursive -R html-cov > coverage.html","hint":"jshint --verbose lib test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"MIT","dependencies":{"split":"^1.0.0"},"devDependencies":{"jscoverage":"^0.6.0","jshint":"^2.9.2","mocha":"^2.5.3","pg":"^4.5.6","pg-escape":"^0.2.0","pg-native":"^1.10.0","resumer":"0.0.0","tmp":"0.0.28","which":"^1.2.10"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"git+https://github.com/hoegaarden/pgpass.git"},"gitHead":"57f96ffe65dc504557914c5e6f49e85c8f083134","homepage":"https://github.com/hoegaarden/pgpass#readme","_id":"pgpass@1.0.0","_shasum":"2b65926e61fa8be38b295777a8a31c40eea203b0","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"dist":{"shasum":"2b65926e61fa8be38b295777a8a31c40eea203b0","size":8694,"noattachment":false,"key":"/pgpass/-/pgpass-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-1.0.0.tgz"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pgpass-1.0.0.tgz_1469869423955_0.15992868039757013"},"directories":{},"publish_time":1469869426956,"_cnpm_publish_time":1469869426956,"_hasShrinkwrap":false},"0.0.6":{"name":"pgpass","version":"0.0.6","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","test":"npm run hint && mocha --recursive -R list && npm run coverage","coverage":"rm -rf -- lib-cov ; jscoverage lib lib-cov && mocha --recursive -R html-cov > coverage.html","hint":"jshint --verbose lib test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"MIT","dependencies":{"split":"^1.0.0"},"devDependencies":{"jscoverage":"^0.6.0","jshint":"^2.9.2","mocha":"^2.5.3","pg":"^4.5.6","pg-escape":"^0.2.0","pg-native":"^1.10.0","resumer":"0.0.0","tmp":"0.0.28"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"git+https://github.com/hoegaarden/pgpass.git"},"gitHead":"823c028f308ea14b8914221e898e5659f850ef78","homepage":"https://github.com/hoegaarden/pgpass#readme","_id":"pgpass@0.0.6","_shasum":"f6276200d01739da1eea63138bdca35ff4bd7280","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"dist":{"shasum":"f6276200d01739da1eea63138bdca35ff4bd7280","size":8232,"noattachment":false,"key":"/pgpass/-/pgpass-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-0.0.6.tgz"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pgpass-0.0.6.tgz_1465242404657_0.5991371956188232"},"directories":{},"publish_time":1465242406398,"_cnpm_publish_time":1465242406398,"_hasShrinkwrap":false},"0.0.5":{"name":"pgpass","version":"0.0.5","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","test":"npm run hint && mocha --recursive -R list && npm run coverage","coverage":"rm -rf -- lib-cov ; jscoverage lib lib-cov && mocha --recursive -R html-cov > coverage.html","hint":"jshint --verbose lib test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"BSD-2-Clause","dependencies":{"split":"^1.0.0"},"devDependencies":{"jscoverage":"^0.6.0","jshint":"^2.9.2","mocha":"^2.5.3","pg":"^4.5.6","pg-escape":"^0.2.0","pg-native":"^1.10.0","resumer":"0.0.0","tmp":"0.0.28"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"git+https://github.com/hoegaarden/pgpass.git"},"gitHead":"4422967276108af2ad73f50b665dc4002b35dc23","homepage":"https://github.com/hoegaarden/pgpass#readme","_id":"pgpass@0.0.5","_shasum":"2c8db1393bf5237c454f2cd5b1da73c54fb698b4","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"dist":{"shasum":"2c8db1393bf5237c454f2cd5b1da73c54fb698b4","size":7363,"noattachment":false,"key":"/pgpass/-/pgpass-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-0.0.5.tgz"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pgpass-0.0.5.tgz_1465195067889_0.6424134296830744"},"directories":{},"publish_time":1465195069615,"_cnpm_publish_time":1465195069615,"_hasShrinkwrap":false},"0.0.3":{"name":"pgpass","version":"0.0.3","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","test":"npm run hint && mocha --recursive -R list && npm run coverage","coverage":"rm -rf -- lib-cov ; jscoverage lib lib-cov && mocha --recursive -R html-cov > coverage.html","hint":"jshint --verbose lib test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"BSD-2-Clause","dependencies":{"split":"~0.3"},"devDependencies":{"mocha":"~1.14.0","resumer":"0.0.0","jscoverage":"~0.3.8","jshint":"~2.3.0","pg":"~2.11.1","pg-escape":"0.0.2","tmp":"0.0.23"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"https://github.com/hoegaarden/pgpass.git"},"homepage":"https://github.com/hoegaarden/pgpass","_id":"pgpass@0.0.3","dist":{"shasum":"12e67e343b3189c2f31206ebc9cc0befffcf9140","size":7327,"noattachment":false,"key":"/pgpass/-/pgpass-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"directories":{},"publish_time":1397079290739,"_cnpm_publish_time":1397079290739,"_hasShrinkwrap":false},"0.0.2":{"name":"pgpass","version":"0.0.2","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","test":"npm run hint && mocha -R list && npm run coverage","coverage":"rm -rf -- lib-cov ; PATH=$PATH:./node_modules/jscoverage/bin ; jscoverage lib lib-cov && mocha -R html-cov > coverage.html","hint":"PATH=$PATH:./node_modules/jshint/bin ; jshint --verbose lib test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"BSD-2-Clause","dependencies":{"split":"~0.2.10"},"devDependencies":{"mocha":"~1.14.0","resumer":"0.0.0","jscoverage":"~0.3.8","jshint":"~2.3.0"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"https://github.com/hoegaarden/pgpass.git"},"homepage":"https://github.com/hoegaarden/pgpass","_id":"pgpass@0.0.2","dist":{"shasum":"c1ad70aad37b9042ad4c06ec374d5f0c77cd6d95","size":5845,"noattachment":false,"key":"/pgpass/-/pgpass-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"directories":{},"publish_time":1394353712129,"_cnpm_publish_time":1394353712129,"_hasShrinkwrap":false},"0.0.1":{"name":"pgpass","version":"0.0.1","description":"Module for reading .pgpass","main":"lib/index","scripts":{"pretest":"chmod 600 ./test/_pgpass","test":"npm run hint && mocha -R list && npm run coverage","coverage":"rm -rf -- lib-cov ; PATH=$PATH:./node_modules/jscoverage/bin ; jscoverage lib lib-cov && mocha -R html-cov > coverage.html","hint":"PATH=$PATH:./node_modules/jshint/bin ; jshint --verbose lib test"},"author":{"name":"Hannes Hörl","email":"hannes.hoerl+pgpass@snowreporter.com"},"license":"BSD-2-Clause","dependencies":{"split":"~0.2.10"},"devDependencies":{"mocha":"~1.14.0","resumer":"0.0.0","jscoverage":"~0.3.8","jshint":"~2.3.0"},"keywords":["postgres","pg","pgpass","password","postgresql"],"bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"repository":{"type":"git","url":"https://github.com/hoegaarden/pgpass.git"},"readmeFilename":"README.md","homepage":"https://github.com/hoegaarden/pgpass","_id":"pgpass@0.0.1","dist":{"shasum":"39bea2df1e36f776ff069ed22966ea187646c405","size":5710,"noattachment":false,"key":"/pgpass/-/pgpass-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pgpass/download/pgpass-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"},"maintainers":[{"name":"hoegaarden","email":"hannes.hoerl+npm@snowreporter.com"}],"directories":{},"publish_time":1387321438091,"_cnpm_publish_time":1387321438091,"_hasShrinkwrap":false}},"readme":"# pgpass\n\n[![Build Status](https://github.com/hoegaarden/pgpass/workflows/CI/badge.svg?branch=master)](https://github.com/hoegaarden/pgpass/actions?query=workflow%3ACI+branch%3Amaster)\n\n## Install\n\n```sh\nnpm install pgpass\n```\n\n## Usage\n```js\nvar pgPass = require('pgpass');\n\nvar connInfo = {\n  'host' : 'pgserver' ,\n  'user' : 'the_user_name' ,\n};\n\npgPass(connInfo, function(pass){\n  conn_info.password = pass;\n  // connect to postgresql server\n});\n```\n\n## Description\n\nThis module tries to read the `~/.pgpass` file (or the equivalent for windows systems). If the environment variable `PGPASSFILE` is set, this file is used instead. If everything goes right, the password from said file is passed to the callback; if the password cannot be read `undefined` is passed to the callback.\n\nCases where `undefined` is returned:\n\n- the environment variable `PGPASSWORD` is set\n- the file cannot be read (wrong permissions, no such file, ...)\n- for non windows systems: the file is write-/readable by the group or by other users\n- there is no matching line for the given connection info\n\nThere should be no need to use this module directly; it is already included in `node-postgres`.\n\n## Configuration\n\nThe module reads the environment variable `PGPASS_NO_DEESCAPE` to decide if the the read tokens from the password file should be de-escaped or not. Default is to do de-escaping. For further information on this see [this commit](https://github.com/postgres/postgres/commit/8d15e3ec4fcb735875a8a70a09ec0c62153c3329).\n\n\n## Tests\n\nThere are tests in `./test/`; including linting and coverage testing. Running `npm test` runs:\n\n- `jshint`\n- `mocha` tests\n- `jscoverage` and `mocha -R html-cov`\n\nYou can see the coverage report in `coverage.html`.\n\n\n## Development, Patches, Bugs, ...\n\nIf you find Bugs or have improvements, please feel free to open a issue on GitHub. If you provide a pull request, I'm more than happy to merge them, just make sure to add tests for your changes.\n\n## Links\n\n- https://github.com/hoegaarden/node-pgpass\n- http://www.postgresql.org/docs/current/static/libpq-pgpass.html\n- https://wiki.postgresql.org/wiki/Pgpass\n- https://github.com/postgres/postgres/blob/master/src/interfaces/libpq/fe-connect.c\n\n## License\n\nCopyright (c) 2013-2016 Hannes Hörl\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/hoegaarden/pgpass#readme","bugs":{"url":"https://github.com/hoegaarden/pgpass/issues"},"license":"MIT"}