{"_id":"source-dot-env","_rev":"6-e726dee9e43336845d6cfcbe511c4f87","name":"source-dot-env","description":"Tiny library to load (bash) sourceable .env files.","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"source-dot-env","version":"0.1.0","description":"Tiny library to load (bash) sourceable .env files.","main":"index.js","scripts":{"test":"mocha --recursive __tests__/","test:watch":"npm run test -- -w"},"keywords":["bash","source","sourceable","env","dot","environment","shell"],"repository":{"type":"git","url":"git+https://github.com/sdelrio0/source-dot-env.git"},"files":["__tests__","README.md","index.js",".env",".env.sh"],"author":{"name":"Sergio","email":"sdelrio0@gmail.com","url":"http://xilix.io/"},"license":"MIT","devDependencies":{"chai":"^3.5.0","mocha":"^3.0.2"},"gitHead":"f5a991fc801adc8632ad0ab9761cb01d939066f8","bugs":{"url":"https://github.com/sdelrio0/source-dot-env/issues"},"homepage":"https://github.com/sdelrio0/source-dot-env#readme","_id":"source-dot-env@0.1.0","_shasum":"5f35a5a77e76d263d7cf404ea9aecd7aec28651b","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"sdelrio0","email":"sdelrio0@gmail.com"},"dist":{"shasum":"5f35a5a77e76d263d7cf404ea9aecd7aec28651b","tarball":"https://registry.npmjs.org/source-dot-env/-/source-dot-env-0.1.0.tgz","integrity":"sha512-EZey4ckUG56yH7O7EJQFlOu7nEfej4AXa58LrACHq1THy227oDmeqbEn69mBHQ9mE5vHKSp6FHzuVCQZnXRZ6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6gj9skd5WLlpYBHQdB9hcLiggMJsPNcwzODnxdwCgHQIhAPhFZTHXqNrIqO9gWbbcSWJBcIsKDRQN/J7XIwa0N7uZ"}]},"maintainers":[{"name":"sdelrio0","email":"sdelrio0@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/source-dot-env-0.1.0.tgz_1473083440443_0.8617485943250358"}},"0.1.1":{"version":"0.1.1","name":"source-dot-env","description":"Tiny library to load (bash) sourceable .env files.","main":"index.js","scripts":{"test":"mocha --recursive __tests__/","test:watch":"npm run test -- -w","semantic-release":"semantic-release pre && npm publish && semantic-release post","cover":"nyc --reporter=lcov npm run test","cover:report":"npm run cover && nyc report","cover:report:check":"npm run cover:report && npm run check-coverage","check-coverage":"nyc check-coverage --statements 10 --branches 10 --functions 10 --lines 10","report-coverage":"cat ./coverage/lcov.info | codecov","docs":"esdoc -c ./esdoc.json"},"keywords":["bash","source","sourceable","env","dot","environment","shell"],"repository":{"type":"git","url":"git+https://github.com/sdelrio0/source-dot-env.git"},"files":["__tests__","README.md","index.js",".env",".env.sh"],"author":{"name":"Sergio","email":"sdelrio0@gmail.com","url":"http://xilix.io/"},"license":"MIT","devDependencies":{"chai":"^3.5.0","esdoc":"^0.4.8","mocha":"^3.0.2","nyc":"^8.1.0","semantic-release":"^4.3.5"},"gitHead":"8e9ae3edd30d4fe3e428730b85051c5cad6771d3","bugs":{"url":"https://github.com/sdelrio0/source-dot-env/issues"},"homepage":"https://github.com/sdelrio0/source-dot-env#readme","_id":"source-dot-env@0.1.1","_shasum":"f614ff6c04608acbac1f233a41f2bcaf8c246c44","_from":".","_npmVersion":"2.15.10","_nodeVersion":"4.5.0","_npmUser":{"name":"sdelrio0","email":"sdelrio0@gmail.com"},"dist":{"shasum":"f614ff6c04608acbac1f233a41f2bcaf8c246c44","tarball":"https://registry.npmjs.org/source-dot-env/-/source-dot-env-0.1.1.tgz","integrity":"sha512-XfY13qT+svqfGf0460lOE4hA9yY8fkg0UqUkZu+s36XrxZW5EhP05JRNWrcTeVN8rgbh/xa02RvmZzEk4T73rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyGFO7ZbB2sIVUmYg3jkrA40+Pu6+1a5DPgZSb4Mxv7AIgLMb4W7Y7GeQ8x3P9cTpjvxwj/n8euF8uYbgrEhKJtGA="}]},"maintainers":[{"name":"sdelrio0","email":"sdelrio0@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/source-dot-env-0.1.1.tgz_1473084682273_0.2453339567873627"}},"0.1.2":{"version":"0.1.2","name":"source-dot-env","description":"Tiny library to load (bash) sourceable .env files.","main":"index.js","scripts":{"test":"mocha --recursive __tests__/","test:watch":"npm run test -- -w","semantic-release":"semantic-release pre && npm publish && semantic-release post","cover":"nyc --reporter=lcov npm run test","cover:report":"npm run cover && nyc report","cover:report:check":"npm run cover:report && npm run check-coverage","check-coverage":"nyc check-coverage --statements 10 --branches 10 --functions 10 --lines 10","report-coverage":"cat ./coverage/lcov.info | codecov"},"keywords":["bash","source","sourceable","env","dot","environment","shell"],"repository":{"type":"git","url":"git+https://github.com/sdelrio0/source-dot-env.git"},"files":["__tests__","README.md","index.js",".env",".env.sh"],"author":{"name":"Sergio","email":"sdelrio0@gmail.com","url":"http://xilix.io/"},"license":"MIT","devDependencies":{"chai":"^3.5.0","codecov":"^1.0.1","esdoc":"^0.4.8","mocha":"^3.0.2","nyc":"^8.1.0","semantic-release":"^4.3.5"},"gitHead":"4d86be34560d434d31440fa98b68830cabd4c17f","bugs":{"url":"https://github.com/sdelrio0/source-dot-env/issues"},"homepage":"https://github.com/sdelrio0/source-dot-env#readme","_id":"source-dot-env@0.1.2","_shasum":"6ee753bb64e905d9939b1fb3aa124d18e2c91ad3","_from":".","_npmVersion":"2.15.10","_nodeVersion":"4.5.0","_npmUser":{"name":"sdelrio0","email":"sdelrio0@gmail.com"},"dist":{"shasum":"6ee753bb64e905d9939b1fb3aa124d18e2c91ad3","tarball":"https://registry.npmjs.org/source-dot-env/-/source-dot-env-0.1.2.tgz","integrity":"sha512-1ZmuYnoobsR8vsVpf03Sy5YQzZh0hXEcXOrGfyPTWzMeYPMp55JmibO9bX8P9faJai3B78eLeqxR9C/5zq9aMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEw1jXNgFQZaJgeJqnGsUQ87Spv7uxdBMug5uFmLR4PAiEA/79MSAiMgljvqoiFbUaNvw33icDjpblCFONsJIm0i+c="}]},"maintainers":[{"name":"sdelrio0","email":"sdelrio0@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/source-dot-env-0.1.2.tgz_1473086292695_0.3038554775994271"}}},"readme":"# Source.env\n\nTiny library to load (bash) sourceable .env files.\n\n[![Travis build](https://img.shields.io/travis/sdelrio0/source-dot-env.svg?style=flat)](https://travis-ci.org/sdelrio0/source-dot-env)\n[![Codecov coverage](https://img.shields.io/codecov/c/github/sdelrio0/source-dot-env.svg?style=flat)]()\n[![npm version](https://img.shields.io/npm/v/source-dot-env.svg?style=flat)](https://www.npmjs.com/package/source-dot-env)\n[![npm licence](https://img.shields.io/npm/l/source-dot-env.svg?style=flat)](https://en.wikipedia.org/wiki/MIT_License)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat)](http://commitizen.github.io/cz-cli/)\n\nFiles can be in the format:\n```bash\n#!/usr/bin/env bash\nexport STR_VAR=\"value\" # Supports inline comments \nexport NUM_VAR=123\nexport NULL_VAR=\n```\n\nAnd also without the `export` statements:\n```bash\nSTR_VAR=\"value\" # Supports inline comments \nNUM_VAR=123\nNULL_VAR=\n```\nUseful when dealing with files that are also loaded via scripts, ie. `source .env.test`\n\n\n## Usage\nRequire the library before anything else in your application.\n\n#### Load default `.env` file:\n```javascript\nrequire('source-dot-env')();\n```\n\n#### Load a specific file:\n```javascript\nrequire('source-dot-env')('.env.development');\n```\n\n#### Return the loaded env vars:\n```javascript\nconst env = require('source-dot-env')();\n\n// env = {\n//   NODE_ENV: 'development',\n//   PORT: 8080\n// }\n```\n\n# MIT Licence\n\nCopyright (c) 2016 Sergio del Rio\n\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.","maintainers":[{"name":"sdelrio0","email":"sdelrio0@gmail.com"}],"time":{"modified":"2022-06-26T22:22:21.741Z","created":"2016-09-05T13:50:42.243Z","0.1.0":"2016-09-05T13:50:42.243Z","0.1.1":"2016-09-05T14:11:24.290Z","0.1.2":"2016-09-05T14:38:14.314Z"},"homepage":"https://github.com/sdelrio0/source-dot-env#readme","keywords":["bash","source","sourceable","env","dot","environment","shell"],"repository":{"type":"git","url":"git+https://github.com/sdelrio0/source-dot-env.git"},"author":{"name":"Sergio","email":"sdelrio0@gmail.com","url":"http://xilix.io/"},"bugs":{"url":"https://github.com/sdelrio0/source-dot-env/issues"},"license":"MIT","readmeFilename":"README.md","users":{"sdelrio0":true}}