{"name":"dotenv-defaults","version":"1.1.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":"^6.2.0"},"devDependencies":{"jest":"^25.0.0","standard":"^13.0.1"},"jest":{"coverageDirectory":"./coverage/","collectCoverage":true},"gitHead":"7e7a52b272a022624972b03544b09cfa3ac16596","_id":"dotenv-defaults@1.1.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-MoWCnFZ1G6ZLww0TFmXx+CFs2X3ZFhIN5AptQBNPOmrHnvqjlzZPsiAbbISDEk4RUKCVgPF8HmvixuxnaVuNZQ==","shasum":"2f67e257756c6248ca17b39a7284859fbf9f715f","tarball":"http://registry-npm.ywwl.com/dotenv-defaults/download/dotenv-defaults-1.1.0.tgz","fileCount":5,"unpackedSize":6912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJw2TCRA9TVsSAnZWagAA4TsQAJ2PZdUEQNYWyi/Ivq0x\nbyyfKHahAUE5UMSsGBIGc5gcYmj77Kuatsp23Wu59mxSEcxV3oKjoBvm33Cu\nl5SX880YKPKHeHTd/Q8mr2IR+jkOp0FOyYkHXLfhpYzjQ8tTJt4B0VCkdPs2\nXK7dEmqPma3GIwqt6a4Ztx4AKIlzqgaycwt/rHRpXcYKpkoteV+kZj/3Z1Cw\nvr1IHP4tMGdtf1XXvASc5Gj+kXtDj+8JNA5KBKj95Uwylkwx/wIreA/+g+VQ\nIh7MsMz1tAA3dCdg0pYpaATuFzcyy6pTlTtCBbirVIaT4fhhe2vT6b2E5qym\nzHp0AYxwmhXyRImc7QlRNEA0gJuiNSEnaN9nMJvpXF7zD1ZW6Hfcmn79IdD5\n7PTse+WHJma5er/1VxfiFzyfsGqpqjbzBHSnkOL71UONZJwNmZoiLPJVgjXj\nZGNWPaqabOuun4r+bZae5sstzYZ94kF7cDRLv8wXlGTQx4AoIk9Zjbjh377J\nq3vJEHAuZsFZQYbtodJkl5+B2Y6gS+W7r8VTtQAf4/VjaAuRY3dNXf/ixc0c\nKUYWP3v0Sb7Fb1bamWB/BmXz5FPYTasyDuDQFxrSLvTFIiymT9hJOAMcuOMP\n7rTeSx7Xkq5r0HKdjEr8iFkKx2C3ErZcR5uuTIOVDxguJAA2nh/9ON10kFBu\neXdK\r\n=NLje\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLlQUx6Rahh7WdtrEMwZqKkwT2WmCDqLNFm4LhupjOhwIgDoQPd2PSBhHdV0sEWAGDp7Djn0qBRDfoFvEZidQCwi4="}],"size":2969,"noattachment":false,"key":"/dotenv-defaults/-/dotenv-defaults-1.1.0.tgz"},"maintainers":[{"name":"mrsteele","email":"matt@omnionline.us"}],"_npmUser":{"name":"mrsteele","email":"matt@omnionline.us"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-defaults_1.1.0_1579617682655_0.20421669278199883"},"_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":1579617682820,"_cnpm_publish_time":1579617682820,"dist-tags":{"latest":"6.0.0"}}