{"_id":"read-env","_rev":"8-bc7f502f81ab60e076d347a5e7c5ca3e","name":"read-env","description":"Transform environment variables into JSON object with sanitized values.","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"read-env","version":"1.0.0","description":"Convert environment variables into JSON object","main":"dist/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/yatki/read-env.git"},"keywords":["env","environment variables","parse","JSON.parse","read"],"author":{"name":"Mehmet Yatkı"},"license":"MIT","bugs":{"url":"https://github.com/yatki/read-env/issues"},"homepage":"https://github.com/yatki/read-env","scripts":{"preversion":"npm test","prepublish":"npm run compile && npm test","eslint:fix":"eslint . --fix --color","eslint:check":"eslint . --color","build":"set BABEL_ENV=production && babel --presets env -d dist/ src/","compile":"babel --presets env -d dist/ src/","test":"nyc ava --verbose"},"pre-push":{"silent":false,"run":["eslint:check"]},"ava":{"files":["test/**/*.spec.js"],"require":["babel-register","babel-polyfill"],"babel":"inherit"},"devDependencies":{"ava":"^0.22.0","babel-cli":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.0","babel-register":"^6.26.0","better-npm-run":"^0.1.0","eslint":"^4.8.0","eslint-config-airbnb":"^15.1.0","eslint-plugin-import":"^2.7.0","nyc":"^11.2.1","pre-push":"^0.1.1"},"dependencies":{"camelcase":"^4.1.0","deepmerge":"^1.5.2","lodash":"^4.17.4"},"gitHead":"076dc2fb25be0117933e517021e99402916a62d2","_id":"read-env@1.0.0","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"yatki","email":"mehmet@yatki.com"},"dist":{"integrity":"sha512-sQc70eOKZtjgLnGZ0Hphe+Cjagru2+q1eBpKN98Bmn/q8PKAVqs/ylghbQHvHNU2Es+py6gnLgcemvqSz0IMqQ==","shasum":"a9049e91f1874e64226399297df82699f697a8ad","tarball":"https://registry.npmjs.org/read-env/-/read-env-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICEsW7bpQ1TWq3pQzCn4z9Nhapl7oyn0FQZlZ98erc1oAiBInoK4y8Udnbe7cpOE/BKduP+BziqFMizqXYutbUs/xw=="}]},"maintainers":[{"name":"yatki","email":"mehmet@yatki.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-env-1.0.0.tgz_1507415219269_0.6527404135558754"},"directories":{}},"1.0.1":{"name":"read-env","version":"1.0.1","description":"Convert environment variables into JSON object","main":"dist/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/yatki/read-env.git"},"files":["dist/index.js"],"keywords":["env","environment variables","parse","JSON.parse","read"],"author":{"name":"Mehmet Yatkı"},"license":"MIT","bugs":{"url":"https://github.com/yatki/read-env/issues"},"homepage":"https://github.com/yatki/read-env","scripts":{"preversion":"npm test","prepublish":"npm run build && npm test","eslint:fix":"eslint . --fix --color","eslint:check":"eslint . --color","build":"better-npm-run build","compile":"better-npm-run compile","test":"nyc ava --verbose","test:coverage":"npm run compile && npm test","coveralls":"nyc npm run test:coverage && nyc report --reporter=text-lcov | coveralls"},"betterScripts":{"build":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"production","BABEL_ENV":"production"}},"compile":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}},"test":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}}},"pre-push":{"silent":false,"run":["eslint:check"]},"ava":{"files":["test/**/*.spec.js"],"require":["babel-register","babel-polyfill"],"babel":"inherit"},"devDependencies":{"ava":"^0.22.0","babel-cli":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.0","babel-register":"^6.26.0","better-npm-run":"^0.1.0","coveralls":"^3.0.0","eslint":"^4.8.0","eslint-config-airbnb":"^15.1.0","eslint-plugin-ava":"^4.2.2","eslint-plugin-import":"^2.7.0","nyc":"^11.2.1","pre-push":"^0.1.1"},"dependencies":{"camelcase":"^4.1.0","deepmerge":"^1.5.2","lodash":"^4.17.4"},"gitHead":"6bb505a8f442f6627812169c7100b21397258794","_id":"read-env@1.0.1","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"yatki","email":"mehmet@yatki.com"},"dist":{"integrity":"sha512-+bEzKMkxU8BF4XZWisDE+cNwj+DM5LwZAI2shue21n6UssarDSaSbp4yPI72y7qgg3Q9U038wYZKkoyB+qDw/Q==","shasum":"1313761d78cff87523996872d77d5dce3bddf897","tarball":"https://registry.npmjs.org/read-env/-/read-env-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVmv4MRJwR0FdkdN+RVRBEGHcnTHNeGQ0m8fl7yNya2gIgPrc/F/y7YdYszP43FepqgkedTTm3KcJIAENJLOAyodU="}]},"maintainers":[{"name":"yatki","email":"mehmet@yatki.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-env-1.0.1.tgz_1507424548338_0.03335327422246337"},"directories":{}},"1.0.2":{"name":"read-env","version":"1.0.2","description":"Convert environment variables into JSON object","main":"dist/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/yatki/read-env.git"},"files":["dist/index.js"],"keywords":["env","environment variables","parse","JSON.parse","read"],"author":{"name":"Mehmet Yatkı"},"license":"MIT","bugs":{"url":"https://github.com/yatki/read-env/issues"},"homepage":"https://github.com/yatki/read-env","scripts":{"preversion":"npm test","prepublish":"npm run build && npm test","eslint:fix":"eslint . --fix --color","eslint:check":"eslint . --color","build":"better-npm-run build","compile":"better-npm-run compile","test":"nyc ava --verbose","test:coverage":"npm run compile && npm test","coveralls":"nyc npm run test:coverage && nyc report --reporter=text-lcov | coveralls"},"betterScripts":{"build":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"production","BABEL_ENV":"production"}},"compile":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}},"test":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}}},"pre-push":{"silent":false,"run":["eslint:check"]},"ava":{"files":["test/**/*.spec.js"],"require":["babel-register","babel-polyfill"],"babel":"inherit"},"devDependencies":{"ava":"^0.22.0","babel-cli":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.0","babel-register":"^6.26.0","better-npm-run":"^0.1.0","coveralls":"^3.0.0","eslint":"^4.8.0","eslint-config-airbnb":"^15.1.0","eslint-plugin-ava":"^4.2.2","eslint-plugin-import":"^2.7.0","nyc":"^11.2.1","pre-push":"^0.1.1"},"dependencies":{"camelcase":"^4.1.0","deepmerge":"^1.5.2"},"gitHead":"830f2c10442d0ff15a22bb56feae84cbf195ffde","_id":"read-env@1.0.2","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"yatki","email":"mehmet@yatki.com"},"dist":{"integrity":"sha512-r2m7hnC5bqT08VQUGTwKrhwJLHDw8SeZPDKWIGAZdAXjXRUEoZ7SoVl2pvQBM+5yhMgO0GzPtHanwczXiutN+A==","shasum":"4088c69a74e00c4f6ac1b1b5c0d7ff9c8dddd6c7","tarball":"https://registry.npmjs.org/read-env/-/read-env-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5gxLU5oCpn0NI03jFdqhBXHn0PJIDDwxilT9yq3MoNQIgbdc93kZmXFRSv9YTg/psnM1qUZIN+JACKbUukIaePRU="}]},"maintainers":[{"name":"yatki","email":"mehmet@yatki.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-env-1.0.2.tgz_1507425904872_0.5127808528486639"},"directories":{}},"1.1.0":{"name":"read-env","version":"1.1.0","description":"Convert environment variables into JSON object","main":"dist/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/yatki/read-env.git"},"files":["dist/index.js"],"keywords":["env","environment variables","parse","JSON.parse","read"],"author":{"name":"Mehmet Yatkı"},"license":"MIT","bugs":{"url":"https://github.com/yatki/read-env/issues"},"homepage":"https://github.com/yatki/read-env","scripts":{"preversion":"npm test","prepublish":"npm run build && npm test","eslint:fix":"eslint . --fix --color","eslint:check":"eslint . --color","build":"better-npm-run build","compile":"better-npm-run compile","test":"nyc ava --verbose","test:coverage":"npm run compile && npm test","coveralls":"nyc npm run test:coverage && nyc report --reporter=text-lcov | coveralls"},"betterScripts":{"build":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"production","BABEL_ENV":"production"}},"compile":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}},"test":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}}},"pre-push":{"silent":false,"run":["eslint:check"]},"ava":{"files":["test/**/*.spec.js"],"require":["babel-register","babel-polyfill"],"babel":"inherit"},"devDependencies":{"ava":"^0.22.0","babel-cli":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.0","babel-register":"^6.26.0","better-npm-run":"^0.1.0","coveralls":"^3.0.0","eslint":"^4.8.0","eslint-config-airbnb":"^15.1.0","eslint-plugin-ava":"^4.2.2","eslint-plugin-import":"^2.7.0","nyc":"^11.2.1","pre-push":"^0.1.1"},"dependencies":{"camelcase":"^4.1.0"},"gitHead":"2a42ebca3d5b4db566e5ca0c64cd7654118a1be4","_id":"read-env@1.1.0","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"yatki","email":"mehmet@yatki.com"},"dist":{"integrity":"sha512-68NotSmjMfhXnflPtdh87wpwpF3wgmemjwZEZVM094SUwahynCSMlK+FF6VAws73rxA1ndASqFRZGl5BFUzc6A==","shasum":"de80607b6b409b56464352b52c2d064e450b0877","tarball":"https://registry.npmjs.org/read-env/-/read-env-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqyzePw9/jz+7GwkoATASVhKf+hfR7/wpoTWxuusEayAiAfqQ83p6YyZAzcDciQHqealMRXHdJCPsMOCnZvlDzLYA=="}]},"maintainers":[{"name":"yatki","email":"mehmet@yatki.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-env-1.1.0.tgz_1507464602150_0.8417802113108337"},"directories":{}},"1.1.1":{"name":"read-env","version":"1.1.1","description":"Convert environment variables into JSON object","main":"dist/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/yatki/read-env.git"},"files":["dist/index.js"],"keywords":["env","environment variables","parse","JSON.parse","read"],"author":{"name":"Mehmet Yatkı"},"license":"MIT","bugs":{"url":"https://github.com/yatki/read-env/issues"},"homepage":"https://github.com/yatki/read-env","scripts":{"preversion":"npm test","prepublish":"npm run build && npm test","eslint:fix":"eslint . --fix --color","eslint:check":"eslint . --color","build":"better-npm-run build","compile":"better-npm-run compile","test":"nyc ava --verbose","test:coverage":"npm run compile && npm test","coveralls":"nyc npm run test:coverage && nyc report --reporter=text-lcov | coveralls"},"betterScripts":{"build":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"production","BABEL_ENV":"production"}},"compile":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}},"test":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}}},"pre-push":{"silent":false,"run":["eslint:check"]},"ava":{"files":["test/**/*.spec.js"],"require":["babel-register","babel-polyfill"],"babel":"inherit"},"devDependencies":{"ava":"^0.22.0","babel-cli":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.0","babel-register":"^6.26.0","better-npm-run":"^0.1.0","coveralls":"^3.0.0","eslint":"^4.8.0","eslint-config-airbnb":"^15.1.0","eslint-plugin-ava":"^4.2.2","eslint-plugin-import":"^2.7.0","nyc":"^11.2.1","pre-push":"^0.1.1"},"dependencies":{"camelcase":"^4.1.0"},"gitHead":"14850517861d39854e5a7afaa6009f153b443786","_id":"read-env@1.1.1","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"yatki","email":"mehmet@yatki.com"},"dist":{"integrity":"sha512-yzGQb8P7N8zf513nRu+kMiQPJlmADWqS7Qn2pd6aAvRcrMCxuFvRX1KL8KU0ckdWVqoTX7Qpj10U+Dx7cVL/LA==","shasum":"561f16438792b19ed10ffede0315bde37f9f87fc","tarball":"https://registry.npmjs.org/read-env/-/read-env-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/SsB+k9sLHTABWGkvPYQwzod5HXYSgsZlUD32dOBTqAIgWladavfcLQDNSfc4eN9hP1vhege+SOasrEhZQ9cefsY="}]},"maintainers":[{"name":"yatki","email":"mehmet@yatki.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-env-1.1.1.tgz_1507465078464_0.745888204080984"},"directories":{}},"1.2.0":{"name":"read-env","version":"1.2.0","description":"Convert environment variables into JSON object","main":"dist/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/yatki/read-env.git"},"files":["dist/index.js"],"keywords":["env","environment variables","parse","JSON.parse","read"],"author":{"name":"Mehmet Yatkı"},"license":"MIT","bugs":{"url":"https://github.com/yatki/read-env/issues"},"homepage":"https://github.com/yatki/read-env","scripts":{"preversion":"npm test","prepublish":"npm run build && npm test","eslint:fix":"eslint . --fix --color","eslint:check":"eslint . --color","build":"better-npm-run build","compile":"better-npm-run compile","test":"nyc ava --verbose","test:coverage":"npm run compile && npm test","coveralls":"nyc npm run test:coverage && nyc report --reporter=text-lcov | coveralls"},"betterScripts":{"build":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"production","BABEL_ENV":"production"}},"compile":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}},"test":{"command":"babel --presets env -d dist/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}}},"pre-push":{"silent":false,"run":["eslint:check"]},"ava":{"files":["test/**/*.spec.js"],"require":["babel-register","babel-polyfill"],"babel":"inherit"},"devDependencies":{"ava":"^0.22.0","babel-cli":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.0","babel-register":"^6.26.0","better-npm-run":"^0.1.0","coveralls":"^3.0.0","eslint":"^4.8.0","eslint-config-airbnb":"^15.1.0","eslint-plugin-ava":"^4.2.2","eslint-plugin-import":"^2.7.0","nyc":"^11.2.1","pre-push":"^0.1.1"},"dependencies":{"camelcase":"5.0.0"},"gitHead":"6d49d929a476beb4aa51cc4f133e668bd1a8ed8c","_id":"read-env@1.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"yatki","email":"mehmet@yatki.com"},"dist":{"integrity":"sha512-29PX3GtJ9nUWsM8UckqJVdrqJzv8yWPDH3lxk2+CBFN3mJ1gJ42dluzxqmADCG7H0jL26G53G5+CwAqQph2Ctw==","shasum":"efbcd36b5d88bea97f9f20a7ea231fbdb5f89ff4","tarball":"https://registry.npmjs.org/read-env/-/read-env-1.2.0.tgz","fileCount":4,"unpackedSize":13532,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+vx2CRA9TVsSAnZWagAAMOwP/0EN/AAjyF3R9ROsM52T\nVyLW+rG1Zc/fhJ2I/w6vIiyGkOdGUmWZGDY2SVl5KPrC14CoE5cVqcjoJrDK\nBbmLkaVVzMYJsZntF2o4Od9LAG6cDyCpkJy/TB8QI7ykbRDrM8YIsjq3p73W\nwwBZbrS5k1waZa/kl6Vsxwj9F/N6Z6I/SsRwAAP7186fcuIBZMRXWdK3gS/q\n66tk5sDsoyuVhT/GfAKhtZ4yFVxs322MUhAq9P7Goxn55K5mcOeT1vHvQvTH\ngBog0rgWC5tZz5FBM5e2zKb4pDNr0kQJvpwVvTFUbf4NnnKw49SG0nokYpwY\nTXBBnPKhb09s8WWrQnmnAT8IvljNptL/b8QHk4aSo562M6Mhiaqo4yOpjD0J\n8MSO8O5K0ut/kJ/doEUYX/yZ2DnTJyFSVC5GQ58bK5bInQ3NhnjFAJaMCn8U\nXJzybgLesXfcVE+/N4//J+GPEokxztC7QVWzCDI6tg1Wh+YUW5ZuDygS+ndY\nkttHQ1rILrGJ0qA/OuHs6cCKSQTFTcf+xmuGOosuZpiLCMZ5EPbInwUuaV0/\ns/y2I03wDiBXdXxr/q4Zv2rJQrlBt8drniqdvlZQs+xI9/CD6Eyfv9nCqlV9\nkByS/acIs3NFdWbRNuc/zKehBrz0dszP6mRLvzUvVltbVJoT64nhCW0LNc3c\nE+A2\r\n=Qmzj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9TLH6YpCdkC/P/wajHRtDzBZ42IHvKBwqtNBR59rN8wIgUR3rn9UUbYb9olT4xBZfo7z/eqcyKO6PuACm4aDsMMk="}]},"maintainers":[{"name":"yatki","email":"mehmet@yatki.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-env_1.2.0_1526398068533_0.17861897073886568"},"_hasShrinkwrap":false},"1.3.0":{"name":"read-env","version":"1.3.0","description":"Convert environment variables into JSON object","browser":"dist-browser/index.min.js","main":"dist-node/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/yatki/read-env.git"},"files":["dist-node/index.js","dist-browser/index.js","dist-browser/index.min.js"],"keywords":["env","environment variables","parse","JSON.parse","read"],"author":{"name":"Mehmet Yatkı"},"license":"MIT","bugs":{"url":"https://github.com/yatki/read-env/issues"},"homepage":"https://github.com/yatki/read-env","scripts":{"preversion":"npm test","prepublishOnly":"npm run build && npm test","eslint:fix":"eslint . --fix --color","eslint:check":"eslint . --color","build":"npm run build:node && npm run build:browser && npm run uglify:browser","build:node":"bnr build:node","build:browser":"bnr build:browser","uglify:browser":"bnr uglify:browser","compile":"bnr compile","test":"nyc ava --verbose","coveralls":"nyc npm run test && nyc report --reporter=text-lcov | coveralls"},"betterScripts":{"build:node":{"command":"babel --presets env -d dist-node/ src/","env":{"NODE_ENV":"production","BABEL_ENV":"production"}},"build:browser":{"command":"browserify ./dist-node/index.js -o ./dist-browser/index.js -s read-env --node","env":{"NODE_ENV":"production"}},"uglify:browser":{"command":"uglifyjs -m -o ./dist-browser/index.min.js ./dist-browser/index.js","env":{"NODE_ENV":"production"}},"compile":{"command":"babel --presets env -d dist-node/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}},"test":{"command":"babel --presets env -d dist-node/ src/","env":{"NODE_ENV":"development","BABEL_ENV":"development"}}},"pre-push":{"silent":false,"run":["eslint:check"]},"ava":{"files":["test/**/*.spec.js"],"require":["babel-register","babel-polyfill"],"babel":"inherit"},"devDependencies":{"ava":"^0.22.0","babel-cli":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.0","babel-register":"^6.26.0","better-npm-run":"^0.1.0","browserify":"^16.2.2","coveralls":"^3.0.0","eslint":"^4.8.0","eslint-config-airbnb":"^15.1.0","eslint-plugin-ava":"^4.2.2","eslint-plugin-import":"^2.7.0","nyc":"^11.2.1","pre-push":"^0.1.1","uglify-es":"^3.3.9"},"dependencies":{"camelcase":"5.0.0"},"gitHead":"ea7fb965f75c20781c318786427a60d52ba1ac8b","_id":"read-env@1.3.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"yatki","email":"mehmet@yatki.com"},"dist":{"integrity":"sha512-DbCgZ8oHwZreK/E2E27RGk3EUPapMhYGSGIt02k9sX6R3tCFc4u4tkltKvkCvzEQ3SOLUaiYHAnGb+TdsnPp0A==","shasum":"e26e1e446992b3216e9a3c6f6ac51064fe91fdff","tarball":"https://registry.npmjs.org/read-env/-/read-env-1.3.0.tgz","fileCount":6,"unpackedSize":23620,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcYCdCRA9TVsSAnZWagAAY6MP/jXGuWrFI1qpzgFrrOuW\n+ChWL6dzEp8J5YGbf3HpZMY9PG5HBbF7Hjb2LIfW8Cl87nCAYQ1WZLJ9jpsd\n4g0F304uS4pqGBJK361IuYBi83vZp9HBpUTghpWM/lRdnDyXYqQUSL5ZoufQ\nxmcAXSyGloe4vaMLBe76q99tNnnoHOKi/1W8wn2kMNAbSXVhCY4mzqQ4gGbW\n9Wg5gw8cJHkWY9+nVSEtGaeeD5r3QNLGyzrZd8hMDB0q6D93EnfTroxJT1iT\n0hi/4SURzwM9z65fXJIT6tVUh77bBiCB3AX5A2u6WiU/mFae1Q3iMCDq2Fw4\nCltma3AGRwSSeqdjr1HUjDrfBVOwnhTPlcuEDpWel71cjc1WwZOmC3R7JIhT\nhfha+9tF7I94SIxBYrviyUV4+OUXtWWyJujlQh2uq31A+s3GCHlxkvfvIaAx\nf8517sdVqpMpwS/skZ70ZAExbfNq8pmHqbc5C6A+2oI7JVSqbZh0rOac06m+\nSmRQE+OI9OSjDfmS0+OCz/6aain90r0p3C1BOi1ovwFdtuNU0ITPC7MFh4lT\nZBh3lzccOTK9KIyJ93DVS8uPzbBX6tUZhEik3sUoCC3Mgh5PO8nZcVj+poBd\nGh6EXrEfMo09kwMmyQeBu4zH6dU4AaNr9i0GbZ9Q2VUy7EforlZ9Ged4SvBI\n51LK\r\n=TIw0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDucWGAuBdep5zZA/QgXjPEzoxvE4uxKnx+YH3uqEcdCQIhAMnVVN26FNx5EgmVrw54wANxl8KdBNKpXehFighmMSzN"}]},"maintainers":[{"name":"yatki","email":"mehmet@yatki.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-env_1.3.0_1534165148718_0.8815070291957294"},"_hasShrinkwrap":false},"2.0.0":{"name":"read-env","version":"2.0.0","description":"Transform environment variables into JSON object with sanitized values.","main":"dist/index.js","module":"dist/index.esm.js","browser":"dist/index.umd.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+ssh://git@github.com/yatki/read-env.git"},"keywords":["env","environment variables","parse","JSON.parse","sanitize","process.env","config","conf","read"],"author":{"name":"Mehmet Yatkı"},"license":"MIT","bugs":{"url":"https://github.com/yatki/read-env/issues"},"homepage":"https://github.com/yatki/read-env","scripts":{"preversion":"npm run lint && npm test","prepublishOnly":"npm run lint && npm test && npm run build","prebuild":"rimraf dist","build":"rollup -c rollup.config.ts","lint":"eslint .","test":"jest","coveralls":"jest --coverage --coverageReporters=text-lcov | coveralls"},"devDependencies":{"@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-node-resolve":"7.1.1","@types/jest":"25.1.4","@types/node":"13.9.8","@typescript-eslint/eslint-plugin":"2.26.0","@typescript-eslint/parser":"2.26.0","coveralls":"3.0.11","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-plugin-import":"2.20.2","eslint-plugin-jest":"23.8.2","husky":"4.2.3","jest":"25.2.6","lint-staged":"10.1.1","prettier":"2.0.2","rimraf":"3.0.2","rollup":"2.3.2","rollup-plugin-terser":"5.3.0","rollup-plugin-typescript2":"0.27.0","ts-jest":"25.3.0","typescript":"3.8.3"},"dependencies":{"@types/camelcase":"5.2.0","camelcase":"5.3.1"},"gitHead":"5e5e283b72890c04bc3f53b93ecbd75f34ee5832","_id":"read-env@2.0.0","_nodeVersion":"12.14.0","_npmVersion":"6.14.2","dist":{"integrity":"sha512-gCuo85JH2aWt23HVeFzUUhpLzCRtc9O0jjvpMDG/3vue2aOp7/XllAQjSyL8xGqBifGNYbnWLE0PAqi4AWMBlA==","shasum":"6fe19783a112ce873b932ad0be607859e27a0510","tarball":"https://registry.npmjs.org/read-env/-/read-env-2.0.0.tgz","fileCount":16,"unpackedSize":44392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehhfwCRA9TVsSAnZWagAAKskP/057xWA6Tb1HQZOrO++j\ncEGVYjYr3NbkdlcVfIsKLASTONHPaKgF52Xd8oFsIkbdzYRV48hlHilnCUO8\nctByvbhTVRkcbVtNzOChPFra2KQEXRd5MotdnHmqKWdW916yAlnSumEiGcmz\nTuOUEeUTdjM6jigMb6pd4Qu15FMv9+MOqZM1hgkL8dM6JRKd8WvQAVeKO5Zo\nNUbMSGMeLQ/ijfl5gctGMZeYlcarKS5gh7T0gZ2Berik/OBTUgRfi7U3AePw\nXC8cYrg+CBsBE9gl0JVH/lbwQBgKk7ZRkmOI3pdP1jOocpMyzrXNYW7gQ6hf\nP+sdAEvJ9T+9K93SQDzF2ZBlbJY9Dg/WdXLyCItR5SjiUC7+NCvceBcb5Xrl\n3eB56tbHikg9Om4Kmpc4Ps0mgqVGxVD7BotKY+V4pheOxlKC5/KxtiZoh/Z/\niwUmMZtsk9IN2mitent6g3UP2EZgagd+5VMe0zkIbjVR7JJpUbl4KtR5O69g\nfSHbrrayJksVrZ1C2gkO3iXJkDmeikhzEisfDC0VfFua/B1r3bI6rd3MVIIP\nbKfS0X4tlRmnHLWL4hBE1epcT5tEgoK4DmN3x9Sk4rVEH4iab7jXsQPbs8HB\nS7IFZ4Vk16157zNpFUvICxj8a0rLBr86EIb4qrLBnB+LDvNfKTdHlub2fxEk\noSV1\r\n=Ad+A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCj80y4eb81Y8SPO4FO3OO6jhfUym5Tu8ZwqNNW0ge/QQIgC2sFg9phmv3T1VbhOb6uyd0OnL9/F8fNSMscpluoSZQ="}]},"maintainers":[{"name":"yatki","email":"mehmet@yatki.com"}],"_npmUser":{"name":"yatki","email":"mehmet@yatki.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-env_2.0.0_1585846256061_0.7746793241536378"},"_hasShrinkwrap":false}},"readme":"# read-env\n\n> Transform environment variables into JSON object with sanitized values.\n\n[![NPM version](https://badge.fury.io/js/read-env.svg)](https://www.npmjs.com/package/read-env)\n[![npm](https://img.shields.io/npm/dt/read-env.svg)](https://www.npmjs.com/package/read-env)\n[![Coverage Status](https://coveralls.io/repos/github/yatki/read-env/badge.svg?branch=master&)](https://coveralls.io/github/yatki/read-env?branch=master)\n[![Dependencies](https://david-dm.org/yatki/read-env/status.svg)](https://david-dm.org/yatki/read-env)\n\n> See docs for previous version [v1.3.x](https://github.com/yatki/read-env/tree/v1.3.0).\n\nMain purpose of this library is to allow developers to configure their applications with environment variables. See: [a use case example](#use-case-example).\n\n## What's New with v2.x 🚀\n\n- Migrated to Typescript, Yay! 🎉\n- Simplified API\n- With new `separator` option,nested object constructions are possible.\n- New `source` option allows you to use other objects, other than `process.env`\n\n## Migrating from v1.x to v2.x\n\n- `default` export is **deprecated**. Please use named export `readEnv` as below:\n\n```js\nconst { readEnv } = require('read-env');\n// Or\nimport { readEnv } from 'read-env';\n// Or in browser\nwindow.readEnv('EXAMPLE');\n```\n\n- `parse` option was renamed as `sanitize`.\n- `transformKey` option was renamed as `format`.\n- Deprecated options: `ignoreInvalidJSON`, `prefix`, `filter`,\n\n## Install\n\n```\nnpm install --save read-env\n```\n\nor\n\n```\nyarn add read-env\n```\n\n## Basic Usage\n\nLet's say you have some environment variables starting with prefix \"**EXAMPLE\\_**\" like below:\n\n```text\nEXAMPLE_OBJECT='{\"prop\": \"value\"}'\nEXAMPLE_ARRAY='[1,2,3, \"string\", {\"prop\": \"value\"}, 5.2]'\nEXAMPLE_INVALID_OBJECT='{\"prop\": }\"value\"}'\nEXAMPLE_INVALID_ARRAY='[1,2,3, \"string\", ]{\"prop\": \"value\"}, 5.2]'\nEXAMPLE_TRUE='true'\nEXAMPLE_FALSE='false'\nEXAMPLE_INT='5'\nEXAMPLE_NEGATIVE_INT='-11'\nEXAMPLE_FLOAT='5.2456'\nEXAMPLE_NEGATIVE_FLOAT='-2.4567'\nEXAMPLE_INT_ZERO='0'\nEXAMPLE_FLOAT_ZERO='0.00'\nEXAMPLE_NEGATIVE_INT_ZERO='-0'\nEXAMPLE_NEGATIVE_FLOAT_ZERO='-0.00'\nEXAMPLE_STRING='example'\nEXAMPLE_DEEP__OBJECT__PROPERTY='value'\n```\n\napp.js\n\n```js\nimport { readEnv } from 'read-env';\n\nconst result = readEnv('EXAMPLE');\nconsole.log(result);\n```\n\nResult:\n\n```json\n{\n  \"object\": { \"prop\": \"value\" },\n  \"array\": [1, 2, 3, \"string\", { \"prop\": \"value\" }, 5.2],\n  \"invalidObject\": \"{\\\"prop\\\": }\\\"value\\\"}\",\n  \"invalidArray\": \"[1,2,3, \\\"string\\\", ]{\\\"prop\\\": \\\"value\\\"}, 5.2]\",\n  \"true\": true,\n  \"false\": false,\n  \"int\": 5,\n  \"negativeInt\": -11,\n  \"float\": 5.2456,\n  \"negativeFloat\": -2.4567,\n  \"intZero\": 0,\n  \"floatZero\": 0,\n  \"negativeIntZero\": -0,\n  \"negativeFloatZero\": -0,\n  \"string\": \"example\",\n  \"deep\": {\n    \"object\": {\n      \"property\": \"value\"\n    }\n  }\n}\n```\n\n## API\n\n### `readEnv(prefix?: string, options: ReadEnvOptions = {})`\n\n**Input:**\n\n- `prefix` (type: `string`, default: `undefined`): filters environment variables by prefix\n- `options` (type: `ReadEnvOptions`, default: `{}`): options object to change function's behaviour\n\n**Returns:** `object` (type: _Record<string,any>_), returns the instance, so add methods are chainable.\n\n### Options\n\n**Default Options:**\n\n```js\n{\n  \"source\": process.env,\n  \"format\": \"camelcase\",\n  \"separator\": \"__\",\n  \"sanitize\": {\n    \"object\": true,\n    \"array\": true,\n    \"bool\": true,\n    \"int\": true,\n    \"float\": true\n  },\n  \"includePrefix\": false\n}\n```\n\n- [`options.source`](#optionssource)\n- [`options.format`](#optionsformat)\n- [`options.separator`](#optionsseparator)\n- [`options.sanitize`](#optionssanitize)\n- [`options.includePrefix`](#optionsincludeprefix)\n\n#### `options.source`\n\n- Type: `object`\n- Default: `process.env`\n\nThe source object that will be filtered, sanitized and formatted.\n\n**Type Signature:**\n\n```ts\ninterface Source {\n  [key: string]: string | undefined;\n}\n```\n\n#### `options.format`\n\n- Type: `boolean | string | function`\n- Default: `camelcase`\n\nFormat environment variable name.\n\nIt's value can be:\n\n- a `boolean`, if set to `false`, formatting is disabled\n- a `string`, one of which `camelcase`, `pascalcase`, `lowercase`, `uppercase`\n- a `function`, with `(rawVarName: string) => string` type signature\n\n#### `options.separator`\n\n- Type: `boolean | string`\n- Default: `__`\n\nAllows you construct nested objects from environment variable name.\n\n- If set to `false`, constructing nested objects is disabled\n\n**Example:**\n\n```js\nconst { readEnv } = require('read-env');\n\nconst testInput = {\n  EXAMPLE_DEEP__OBJECT_PROPERTY1: 'value1',\n  EXAMPLE_DEEP__OBJECT_PROPERTY2: 'value2',\n};\n\nconst result = readEnv('EXAMPLE', {\n  source: testInput,\n});\nconsole.log(result);\n```\n\nResult:\n\n```json\n{\n  \"deep\": {\n    \"object\": {\n      \"property1\": \"value1\",\n      \"property2\": \"value2\"\n    }\n  }\n}\n```\n\n#### `options.sanitize`\n\n- Type: `boolean | object`,\n- Default: `{}`\n\nSanitize object consists of following properties which is used to\n\n- `object` (type: _bool_, default: _true_): sanitize stringified object\n\n  > value must be valid JSON input, see: [JSON.parse](<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_JSON.parse()>).\n\n- `array` (type: _bool_, default: _true_): sanitize stringified array\n  > value must be valid JSON input, see: [JSON.parse](<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_JSON.parse()>).\n- `int` (type: _bool_, default: _true_): sanitize numbers into integer\n  > value must be consist of only digits.\n- `float` (type: _bool_, default: _true_): sanitize numbers into float\n  > value must be consist of only digits with decimal point.\n- `bool` (type: _bool_, default: _true_): sanitize value into boolean\n  > value must have case insensitive match with \"true\" or \"false\".\n\n#### `options.includePrefix`\n\n- Type: `boolean`\n- Default: `false`\n\nIf set to true, keeps the given prefix in property names.\n\n## Use Case Example\n\nIn past, I used [Nightmare](https://github.com/segmentio/nightmare) for _acceptance testing_ and tests had different configurations based on the\nenvironment they were running on.\n\nSo, I simply used read-env, and nightmare is fully configurable with environment variables :)\n\n```js\nimport Nightmare from 'nightmare';\nimport { readEnv } from 'read-env';\n\nconst nightmareConfig = readEnv('MY_NIGHTMARE');\nconst nightmare = Nightmare(nightmareConfig);\n```\n\nInstead of writing code like below:\n\n```js\nimport Nightmare from 'nightmare';\n\nconst nightmare = Nightmare({\n  show: process.env.MY_NIGHTMARE_SHOW || false,\n  width: process.env.MY_NIGHTMARE_WIDTH || 1280,\n  height: process.env.MY_NIGHTMARE_HEIGHT || 720,\n  typeInterval: process.env.MY_NIGHTMARE_TYPE_INTERVAL || 50,\n  //... other properties go forever\n});\n```\n\n## Contribution\n\nAs always, I'm open to any contribution and would like to hear your feedback.\n\n### Just an important reminder:\n\nIf you are planning to contribute to **any** open source project,\nbefore starting development, please **always open an issue** and **make a proposal first**.\nThis will save you from working on features that are eventually going to be rejected for some reason.\n\n## LICENCE\n\nMIT (c) 2020 Mehmet Yatkı\n","maintainers":[{"name":"yatki","email":"mehmet@yatki.com"}],"time":{"modified":"2022-05-15T12:02:42.073Z","created":"2017-10-07T22:27:00.271Z","1.0.0":"2017-10-07T22:27:00.271Z","1.0.1":"2017-10-08T01:02:29.241Z","1.0.2":"2017-10-08T01:25:05.887Z","1.1.0":"2017-10-08T12:10:03.051Z","1.1.1":"2017-10-08T12:17:59.360Z","1.2.0":"2018-05-15T15:27:48.586Z","1.3.0":"2018-08-13T12:59:08.807Z","2.0.0":"2020-04-02T16:50:56.195Z"},"homepage":"https://github.com/yatki/read-env","keywords":["env","environment variables","parse","JSON.parse","sanitize","process.env","config","conf","read"],"repository":{"type":"git","url":"git+ssh://git@github.com/yatki/read-env.git"},"author":{"name":"Mehmet Yatkı"},"bugs":{"url":"https://github.com/yatki/read-env/issues"},"license":"MIT","readmeFilename":"README.md"}