{"_id":"lazy-universal-dotenv","_rev":"3502357","name":"lazy-universal-dotenv","description":"Robust Environment Configuration for Universal Applications.","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"hypnosphi","email":""},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"ndelangen","email":""}],"time":{"modified":"2024-08-27T20:09:36.000Z","created":"2018-10-14T14:34:32.745Z","4.0.0":"2023-01-30T13:07:41.972Z","3.0.1":"2019-07-29T14:29:15.968Z","3.0.0":"2019-06-19T21:04:16.717Z","2.0.0":"2018-10-14T19:08:14.659Z","1.9.1":"2018-10-14T14:34:32.745Z"},"users":{},"author":{"name":"Storybook Team"},"repository":{"type":"git","url":"git+https://github.com/storybooks/lazy-universal-dotenv.git"},"versions":{"4.0.0":{"name":"lazy-universal-dotenv","version":"4.0.0","description":"Robust Environment Configuration for Universal Applications.","keywords":["dotenv","env","universal"],"homepage":"https://github.com/storybooks/lazy-universal-dotenv#readme","bugs":{"url":"https://github.com/storybooks/lazy-universal-dotenv/issues"},"repository":{"type":"git","url":"git+https://github.com/storybooks/lazy-universal-dotenv.git"},"license":"Apache-2.0","author":{"name":"Storybook Team"},"type":"module","main":"lib/index.cjs","module":"lib/index.mjs","exports":{".":{"import":"./lib/index.mjs","require":"./lib/index.cjs"}},"scripts":{"prepare":"rimraf lib && unbuild","test":"NODE_OPTIONS=--experimental-vm-modules jest"},"dependencies":{"app-root-dir":"^1.0.2","dotenv":"^16.0.0","dotenv-expand":"^10.0.0"},"devDependencies":{"jest":"^29.4.1","rimraf":"^2.6.2","unbuild":"^1.1.1"},"engines":{"node":">=14.0.0"},"gitHead":"8f3b2b67b5f9c3627cc6b073adb0872154a51acf","_id":"lazy-universal-dotenv@4.0.0","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"shasum":"0b220c264e89a042a37181a4928cdd298af73422","size":6058,"noattachment":false,"key":"/lazy-universal-dotenv/-/lazy-universal-dotenv-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lazy-universal-dotenv/download/lazy-universal-dotenv-4.0.0.tgz"},"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"maintainers":[{"name":"hypnosphi","email":""},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"ndelangen","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-universal-dotenv_4.0.0_1675084061758_0.49743513274226814"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-30T13:07:41.972Z","publish_time":1675084061972,"_cnpm_publish_time":1675084061972},"3.0.1":{"name":"lazy-universal-dotenv","version":"3.0.1","description":"Robust Environment Configuration for Universal Applications.","keywords":["dotenv","env","universal"],"homepage":"https://github.com/storybooks/lazy-universal-dotenv#readme","bugs":{"url":"https://github.com/storybooks/lazy-universal-dotenv/issues"},"repository":{"type":"git","url":"git+https://github.com/storybooks/lazy-universal-dotenv.git"},"license":"Apache-2.0","author":{"name":"Storybook Team"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","scripts":{"prepare":"rimraf lib && preppy","test":"jest"},"jest":{"testEnvironment":"node"},"dependencies":{"@babel/runtime":"^7.5.0","app-root-dir":"^1.0.2","core-js":"^3.0.4","dotenv":"^8.0.0","dotenv-expand":"^5.1.0"},"devDependencies":{"@babel/core":"^7.5.5","babel-core":"^7.0.0-bridge.0","babel-jest":"^24.8.0","babel-preset-edge":"^5.3.0","jest":"^24.8.0","preppy":"^8.3.0","rimraf":"^2.6.2"},"engines":{"node":">=6.0.0","npm":">=6.0.0","yarn":">=1.0.0"},"gitHead":"36ac3220663e8f0b59266f3c45df6a75c0d4f488","_id":"lazy-universal-dotenv@3.0.1","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"shasum":"a6c8938414bca426ab8c9463940da451a911db38","size":7904,"noattachment":false,"key":"/lazy-universal-dotenv/-/lazy-universal-dotenv-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lazy-universal-dotenv/download/lazy-universal-dotenv-3.0.1.tgz"},"maintainers":[{"name":"hypnosphi","email":""},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"ndelangen","email":""}],"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-universal-dotenv_3.0.1_1564410555825_0.35617712611534325"},"_hasShrinkwrap":false,"publish_time":1564410555968,"_cnpm_publish_time":1564410555968},"3.0.0":{"name":"lazy-universal-dotenv","version":"3.0.0","description":"Robust Environment Configuration for Universal Applications.","keywords":["dotenv","env","universal"],"homepage":"https://github.com/storybooks/lazy-universal-dotenv#readme","bugs":{"url":"https://github.com/storybooks/lazy-universal-dotenv/issues"},"repository":{"type":"git","url":"git+https://github.com/storybooks/lazy-universal-dotenv.git"},"license":"Apache-2.0","author":{"name":"Storybook Team"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","scripts":{"prepare":"rimraf lib && preppy","test":"jest"},"jest":{"testEnvironment":"node"},"dependencies":{"@babel/runtime":"^7.0.0","app-root-dir":"^1.0.2","core-js":"^3.0.4","dotenv":"^8.0.0","dotenv-expand":"^5.1.0"},"devDependencies":{"@babel/core":"^7.1.0","babel-core":"^7.0.0-bridge.0","babel-jest":"^24.8.0","babel-preset-edge":"^5.2.2","jest":"^24.8.0","preppy":"^8.1.3","rimraf":"^2.6.2"},"engines":{"node":">=6.0.0","npm":">=6.0.0","yarn":">=1.0.0"},"gitHead":"f1d3723de28fabe0c4ebb90b2ee61a77a6b58567","_id":"lazy-universal-dotenv@3.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"shasum":"e71f07f89d8de6bbf491478e4503df3c96729b8d","size":7901,"noattachment":false,"key":"/lazy-universal-dotenv/-/lazy-universal-dotenv-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lazy-universal-dotenv/download/lazy-universal-dotenv-3.0.0.tgz"},"maintainers":[{"name":"hypnosphi","email":""},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"ndelangen","email":""}],"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-universal-dotenv_3.0.0_1560978256576_0.4489171115201329"},"_hasShrinkwrap":false,"publish_time":1560978256717,"_cnpm_publish_time":1560978256717},"2.0.0":{"name":"lazy-universal-dotenv","version":"2.0.0","description":"Robust Environment Configuration for Universal Applications.","main":"lib/index.cjs.js","module":"lib/index.esm.js","scripts":{"test":"jest","prepare":"rimraf lib && preppy"},"engines":{"node":">=6.0.0","yarn":">=1.0.0","npm":">=6.0.0"},"keywords":["dotenv","universal","env"],"license":"Apache-2.0","author":{"name":"Storybook Team"},"bugs":{"url":"https://github.com/storybooks/lazy-universal-dotenv/issues"},"homepage":"https://github.com/storybooks/lazy-universal-dotenv#readme","repository":{"type":"git","url":"git+https://github.com/storybooks/lazy-universal-dotenv.git"},"jest":{"testEnvironment":"node"},"devDependencies":{"@babel/core":"^7.1.0","babel-core":"^7.0.0-bridge.0","babel-jest":"^23.6.0","babel-preset-edge":"^4.13.1","jest":"^23.6.0","preppy":"^4.3.2","rimraf":"^2.6.2"},"dependencies":{"@babel/runtime":"^7.0.0","app-root-dir":"^1.0.2","core-js":"^2.5.7","dotenv":"^6.0.0","dotenv-expand":"^4.2.0"},"gitHead":"f5668ea370f81a07892acce9f93fdcda71bd8c11","_id":"lazy-universal-dotenv@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.6.0","_npmUser":{"name":"pksunkara","email":"pavan.sss1991@gmail.com"},"dist":{"shasum":"e015ad9f77be9ef811956d53ea9519b1c0ab0214","size":7902,"noattachment":false,"key":"/lazy-universal-dotenv/-/lazy-universal-dotenv-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lazy-universal-dotenv/download/lazy-universal-dotenv-2.0.0.tgz"},"maintainers":[{"name":"hypnosphi","email":""},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"ndelangen","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-universal-dotenv_2.0.0_1539544094509_0.1378659087100027"},"_hasShrinkwrap":false,"publish_time":1539544094659,"_cnpm_publish_time":1539544094659},"1.9.1":{"name":"lazy-universal-dotenv","version":"1.9.1","description":"Robust Environment Configuration for Universal Applications.","main":"lib/index.cjs.js","module":"lib/index.esm.js","scripts":{"lint":"eslint .","fix":"eslint --fix .","format":"prettier --ignore-path .gitignore --write '**/*.js' && npm run fix","test":"jest","prepare":"rimraf lib && preppy","precommit":"lint-staged","release":"git push && release-it --github.release --npm.publish --non-interactive","release:minor":"git push && release-it --github.release --npm.publish --non-interactive --increment minor","release:major":"git push && release-it --github.release --npm.publish --non-interactive --increment major"},"engines":{"node":">=6.0.0","yarn":">=1.0.0","npm":">=6.0.0"},"keywords":["dotenv","universal","env"],"license":"Apache-2.0","author":{"name":"Sebastian Software","email":"s.werner@sebastian-software.de","url":"https://www.sebastian-software.de"},"bugs":{"url":"https://github.com/sebastian-software/universal-dotenv/issues"},"homepage":"https://github.com/sebastian-software/universal-dotenv#readme","repository":{"type":"git","url":"git+https://github.com/sebastian-software/universal-dotenv.git"},"pre-commit":"lint-staged","lint-staged":{"*.js":"eslint"},"jest":{"testEnvironment":"node"},"devDependencies":{"@babel/core":"^7.1.0","babel-core":"^7.0.0-bridge.0","babel-jest":"^23.6.0","babel-preset-edge":"^4.13.1","eslint":"^5.6.0","eslint-config-readable":"^2.2.0","flow-bin":"^0.81.0","husky":"^0.14.3","jest":"^23.6.0","lint-staged":"^7.2.2","preppy":"^4.3.2","prettier":"^1.14.2","rimraf":"^2.6.2"},"dependencies":{"@babel/runtime":"^7.0.0","app-root-dir":"^1.0.2","core-js":"^2.5.7","dotenv":"^6.0.0","dotenv-expand":"^4.2.0"},"gitHead":"e12f5434d118e0fe4fac9192454392b6f8adc370","_id":"lazy-universal-dotenv@1.9.1","_npmVersion":"6.4.1","_nodeVersion":"10.6.0","_npmUser":{"name":"pksunkara","email":"pavan.sss1991@gmail.com"},"dist":{"shasum":"d3fe9d5dd30309fc84eea1dab2a03585491474f9","size":8814,"noattachment":false,"key":"/lazy-universal-dotenv/-/lazy-universal-dotenv-1.9.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lazy-universal-dotenv/download/lazy-universal-dotenv-1.9.1.tgz"},"maintainers":[{"name":"hypnosphi","email":""},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"ndelangen","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lazy-universal-dotenv_1.9.1_1539527672628_0.04059182977303011"},"_hasShrinkwrap":false,"publish_time":1539527672745,"_cnpm_publish_time":1539527672745}},"readme":"# Lazy Universal DotEnv\n\n[npm]: https://www.npmjs.com/package/universal-dotenv\n\nLazy Universal DotEnv - A Robust Environment Configuration for Universal Applications.\n\n## Features\n\n- Supports loading `.env` files with overriding between different `NODE_ENV` settings and `BUILD_TARGET` configurations.\n- Supports variable expansion between different settings.\n- Allows local overrides using files which use a \".local\" postfix.\n\n## All Strings\n\nIt is important to remember that all environment variables are always stored as strings. Even numbers and booleans. The casting to other types must therefore take place in the application code. See also: https://github.com/motdotla/dotenv/issues/51\n\n## Variables\n\n- `NODE_ENV`: Typically either `production`, `development` or `test`\n- `BUILD_TARGET`: Either `client` or `server`\n\n## File Priority\n\nFiles are being loaded in this order. Values which are already set are never overwritten. Command line environment settings e.g. via [cross-env](https://www.npmjs.com/package/cross-env) always win.\n\n- `.env.${BUILD_TARGET}.${NODE_ENV}.local`\n- `.env.${BUILD_TARGET}.${NODE_ENV}`\n- `.env.${BUILD_TARGET}.local`\n- `.env.${BUILD_TARGET}`\n- `.env.${NODE_ENV}.local`\n- `.env.${NODE_ENV}`\n- `.env.local`\n- `.env`\n\nNote: `local` files without `NODE_ENV` are not respected when running in `NODE_ENV=test`.\n\n## Basic Usage\n\n```js\nimport { getEnvironment } from \"lazy-dotenv-universal\";\n\nconst environment = getEnvironment({ nodeEnv, buildTarget });\n\nconst { raw, stringified, webpack } = environment;\n```\n\nAfter this you can access all environment settings you have defined in one of your `.env` files.\n\nA .env file:\n```\nMY_END=awesome\n```\n\nWebpack config:\n```js\nimport { getEnvironment } from \"lazy-dotenv-universal\";\n\nexport default {\n  // ... \n  plugins: [\n    new webpack.DefinePlugin(getEnvironment().webpack),\n  ],\n  // ...\n}\n```\n\nCode being bundled by webpack:\n```js\nconsole.log(process.env.MY_ENV); // -> \"awesome\"\n```\n\n### Serialization\n\n- raw: Just a plain JS object containing all app settings\n- stringified: Plain object but with JSON stringified values\n- webpack: For usage with [Webpacks Define Plugin](https://webpack.js.org/plugins/define-plugin/)\n\n\n## License\n\n[Apache License Version 2.0, January 2004](license)\n\n## Copyright\n\nCopyright 2018<br/>[Sebastian Software GmbH](http://www.sebastian-software.de)\n","_attachments":{},"homepage":"https://github.com/storybooks/lazy-universal-dotenv#readme","bugs":{"url":"https://github.com/storybooks/lazy-universal-dotenv/issues"},"license":"Apache-2.0"}