{"name":"dotenv-defaults","version":"1.0.0","description":"dotenv... but with defaults!","main":"src/index.js","scripts":{"test":"jest","lint":"standard","travis":"npm run lint && npm t"},"repository":{"type":"git","url":"git+https://github.com/mrsteele/dotenv-defaults.git"},"keywords":["dotenv","defaults","extension","env","default","fallback"],"author":{"name":"Matt Steele","email":"matt@omnionline.us","url":"http://omnionline.us/"},"license":"MIT","bugs":{"url":"https://github.com/mrsteele/dotenv-defaults/issues"},"homepage":"https://github.com/mrsteele/dotenv-defaults#readme","dependencies":{"dotenv":"^5.0.1"},"devDependencies":{"jest":"^23.6.0","standard":"^12.0.1"},"gitHead":"23f0f90d151f6e851ab919d7b68f0065f0e9ce5f","_id":"dotenv-defaults@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.11.2","_npmUser":{"name":"mrsteele","email":"matt@omnionline.us"},"dist":{"integrity":"sha512-nxUSkTxWK1ouusUDGOaR3aLaXWrCGGk3YMHVyAynKZUFTXFlnY8LI/iaMvGhF+kF5OBp3JqaXW5Lip+c1njVsQ==","shasum":"25b059d0d610ae2e009eb27b2ba979f8fa3257e2","tarball":"http://registry-npm.ywwl.com/dotenv-defaults/download/dotenv-defaults-1.0.0.tgz","fileCount":5,"unpackedSize":5535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOUBQCRA9TVsSAnZWagAAd10QAJZixzGguRJSPpDg4hMY\nlOkRi3RjJtfn9LXX1NjinRlGUhlE2iW7QGLy7AcqSCLE28ixKAP9ZVthA1Mg\nHl0A+LNF42VLmukPdtFE7fkwpNZbFtV3QtZZBLOFGKy4pLxSxuh4/XCP4zaD\nVqqxYbXN1SBytshFym/xwYnc54sGkHpAtVZWKwdPudi94nkXrxrfdwNYPQHg\no8N7S2S054WBibSdfoZ98HfMIJW4w4sM/7oTS3E2+XbTF8FzlpdFcNKetT+T\n/WhdD1gMbfW8jfMPLjD/xPQtLlcp3MxzYLzIzZng6KqhOcGtLL8ogW65yuJk\ndaHivWMxOAc0RuB/K0T1ivwzSFYyFlFXijIL1dybSvlcpKjNgkrZX44UXy7u\nIrjdSn+Nn4CdGIzztc6GGa8l2wJWS2IoInVFO7v7muoi8xSZGKvOi9wEGFMU\nlKdBSMe6Tohm51eF0mmwRIPrFPGqU8OqGLeBprvmIEzBTi93pBoaR0kIfB2U\nhDo/HysdaLl5004mgnQuYVjbQbZcIW262GYRwghgwNKFsPXsh/7TaX10Ophi\nzB0BqKni4DTdLCffPv6S3aijBII/NPT7JFzsfzLxNSsEs5DKoJkEE9V+b521\n2EnQj9sKuO2NkB8YXNB9WzQro8QYfRXTEfvy388XjGnC5iZLsG/zj+SJJj+1\nAD0K\r\n=9R6I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxd5Z+l9aQwjTyylXP9qgw2cQWKxpj7ykxYzMw2UBBlgIgf/MNmjNSxmR4DuFUPInMkQa60JBZntiNif5anrC0Pdo="}],"size":2511,"noattachment":false,"key":"/dotenv-defaults/-/dotenv-defaults-1.0.0.tgz"},"maintainers":[{"name":"mrsteele","email":"matt@omnionline.us"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-defaults_1.0.0_1547255888234_0.9210299897196648"},"_hasShrinkwrap":false,"readme":"# dotenv-defaults\n\nA dotenv system that supports defaults.\n\n### Status\n\n![npm](https://img.shields.io/npm/v/dotenv-defaults.svg)\n[![Main](https://github.com/mrsteele/dotenv-defaults/actions/workflows/main.yml/badge.svg)](https://github.com/mrsteele/dotenv-defaults/actions/workflows/main.yml)\n[![dotenv-vault](https://badge.dotenv.org/works-with.svg?r=3)](https://www.dotenv.org/get-started?r=3)\n\n### Installation\n\nUse the following to install this module:\n\n```\nnpm i dotenv-defaults --save\n```\n\n### Usage\n\nThis module supports all the features from the original [dotenv](https://www.npmjs.com/package/dotenv) module, so usage should be simple enough:\n\n```\n# .env.defaults, safe to commit\nHOST=website.com\nEMAIL=test@email.com\n```\n\n```\n# .env, DO NOT COMMIT\nHOST=mrsteele.dev\n```\n\nThe result\n\n```js\nrequire('dotenv-defaults').config()\n\n// Or you can also load it directly like this\nrequire('dotenv-defaults/config')\n\nconsole.log(process.env.HOST)\n// Outputs: mrsteele.dev\n\nconsole.log(process.env.EMAIL)\n// Outputs: test@email.com\n```\n\n##### TypeScript\nSince this module does not provide TypeScript Type Definitions if you try to import it like `import dotenv from \"dotenv-defaults\"` TypeScript will return an error.\n\nInstead you should load it like this:\n```typescript\nimport \"dotenv-defaults/config\"\n```\n\n##### CLI\nYou can also call this module directly when using the node executable.\nSo, for example if you are running a custom script with node and you want to load your environment variables you can do the following `node -r dotenv-defaults/config your-script.js`. (_When using this method, please make sure that you have installed dotenv-defaults with npm or yarn in the same directory_)\n\n### Differences\n\nThe only thing to note is that the original module supported an `options` argument in the `config` function.\n\nThis module supports that as well, but there is an added `defaults` property that can allow you to define where that file is located. An example is shown below:\n\n```js\n// all of these are the default values...\nrequire(`dotenv-defaults`).config({\n  path: './.env',\n  encoding: 'utf8',\n  defaults: './.env.defaults' // This is new\n})\n```\n\n### License\n\nMIT\n","publish_time":1547255888344,"_cnpm_publish_time":1547255888344,"dist-tags":{"latest":"6.0.0"}}