{"_id":"dotenv-flow-webpack","_rev":"14-df9039af4a4bf9144570645610fa9e4f","name":"dotenv-flow-webpack","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0-beta.1":{"name":"dotenv-flow-webpack","version":"0.1.0-beta.1","description":"A simple webpack plugin to support `dotenv-flow`.","keywords":["dotenv","dotenv-flow","webpack","node_env","process.env","environment","variables","development","test","production","local"],"homepage":"https://github.com/hk-labs/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/hk-labs/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/hk-labs/dotenv-flow-webpack/issues"},"main":"index.js","browser":"browser.js","files":["dist/index.js"],"peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4"},"dependencies":{"dotenv-flow":"^0.1.0"},"devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^8.2.2","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","chai":"^4.1.2","esdoc":"^1.0.4","esdoc-standard-plugin":"^1.0.0","husky":"^0.14.3","mocha":"^5.0.1","nyc":"^12.0.1","rimraf":"^2.6.2","sinon":"^6.0.0","standard":"^11.0.0","webpack":"^4.6.0"},"scripts":{"precommit":"npm run lint","prepush":"npm t","lint":"standard","predoc":"rimraf docs","doc":"esdoc -c config/doc.json","pretest":"npm run build","test":"nyc _mocha --compilers js:babel-register","posttest":"nyc report --reporter=lcov","prebuild":"rimraf dist","build":"babel --copy-files --out-dir dist src","travis":"npm run lint && npm t"},"standard":{"parser":"babel-eslint"},"babel":{"presets":["env"],"plugins":["transform-object-assign"]},"nyc":{"include":["src/**/*.js","dist/**/*.js"]},"authors":["Matt Steele <matt@omnionline.us> (http://omnionline.us/)","Dan Kerimdzhanov <kerimdzhanov@gmail.com> (https://github.com/kerimdzhanov)"],"license":"MIT","gitHead":"b8c62c8f1be0f3f53f0b411fc1b993b34fd1d446","_id":"dotenv-flow-webpack@0.1.0-beta.1","_npmVersion":"6.2.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"dist":{"integrity":"sha512-jmHMZPUj3ZEo/vXAoireo3oEWY0iO5NncPaM3vMp/3qZsOmqFi0vOaWJHCJMHlulNeligLlM+BBcPqRswiY2HA==","shasum":"6563324f89374a69b73901e80d07d557a9b5c7ea","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-0.1.0-beta.1.tgz","fileCount":6,"unpackedSize":11715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbQZCCRA9TVsSAnZWagAAiDMP/RRTurLMHvcQg9YgIVAC\nRgFgpulXILbWhplTPO43pqKQ2xIYvcc5CkzNTdMiPt7DkDxshQXCRl5H97hU\nwdIbsH3XTbOe2hNMP6VfeGyaMjavWxZyT8eEpTpzXF+8IRawGZODGGO09AHx\nr0G8ubGKdS5qeHnwFTQihqsxkxnBOuC2Da36RGR1/S68g4dGnel08CdTFCRp\nP5T0bj4PLyBsp6ToRJrIBV2sWVhbEvVcxzGlyLcbfesx5zlZ51qDQ5ETx0vL\n2ff3E4WrP8hdyF9/pCv6KJcjVHA1dO+6nxPdDXIJdjQiZpUvA05dfSmY6tUA\ngohfwSQpAt7NstVe1BXco2kn0zdqX17McQHfz9mE5fLNCf7cCRnDFXEi7tDv\n+NjELP7+b4F9KtmCwYWDXgaIrN4AJcHwm6MySguLckhAX/8x0bKKAwKS9yZ3\neCtZlZ5PQ1ctYEHtodZoWotUjp2HuOeJSOb8vIDSMqa2EDyMq6d4lgLnWzIq\npEjx9HIpOqG87vDnXaazGV22MD3Sn/CdjZ1JLr1wfYVTbIMLxDedP/r+vHtK\nBJf2w2jWS6KVA82PtZ03zmaji0Gkv7bjlnLh4927NYhgBXxYXOWCf4HlJHQI\nJJGcp+5/MwR8p5E3D9sJsjVgZfSg8HraSxiSzmse55vgnEG0t3nazMz4yxIC\nDnGv\r\n=/6BF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFgUGhZlj4gTY6BJYQqmRYTIrDbQYY8VuovR9ClnpJ7TAiEAycDvUUpXCYYUdlEuTh58dvPjP8olYz476lj3UHcl/t0="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_0.1.0-beta.1_1533871682213_0.36613556329506625"},"_hasShrinkwrap":false},"0.1.0-beta.2":{"name":"dotenv-flow-webpack","version":"0.1.0-beta.2","description":"A simple webpack plugin to support `dotenv-flow`.","keywords":["dotenv","dotenv-flow","webpack","node_env","process.env","environment","variables","development","test","production","local"],"homepage":"https://github.com/hk-labs/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/hk-labs/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/hk-labs/dotenv-flow-webpack/issues"},"main":"index.js","browser":"browser.js","files":["dist/index.js"],"peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4"},"dependencies":{"dotenv-flow":"^0.1.0"},"devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^8.2.2","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","chai":"^4.1.2","esdoc":"^1.0.4","esdoc-standard-plugin":"^1.0.0","husky":"^0.14.3","mocha":"^5.0.1","nyc":"^12.0.1","rimraf":"^2.6.2","sinon":"^6.0.0","standard":"^11.0.0","webpack":"^4.6.0"},"scripts":{"precommit":"npm run lint","prepush":"npm t","lint":"standard","predoc":"rimraf docs","doc":"esdoc -c config/doc.json","pretest":"npm run build","test":"nyc _mocha --compilers js:babel-register","posttest":"nyc report --reporter=lcov","prebuild":"rimraf dist","build":"babel --copy-files --out-dir dist src","travis":"npm run lint && npm t"},"standard":{"parser":"babel-eslint"},"babel":{"presets":["env"],"plugins":["transform-object-assign"]},"nyc":{"include":["src/**/*.js","dist/**/*.js"]},"authors":["Matt Steele <matt@omnionline.us> (http://omnionline.us/)","Dan Kerimdzhanov <kerimdzhanov@gmail.com> (https://github.com/kerimdzhanov)"],"license":"MIT","gitHead":"7c320f72eda6bb5396a8f60693a012001d0ca7e4","_id":"dotenv-flow-webpack@0.1.0-beta.2","_npmVersion":"6.2.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"dist":{"integrity":"sha512-H9L+beXmYkbhH4fDcwJ8PZJbLhjJlpvwhMScaTLt2maFLxooZviR1iMSUIlxN1Cc75gHTFqEkGC4qVh+SlYpUA==","shasum":"d490a8bcdeedb27190ebb34298b729096a635ae8","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-0.1.0-beta.2.tgz","fileCount":6,"unpackedSize":11796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbX8DCRA9TVsSAnZWagAAe7sP/j9J8+qWVxg0uUw/8t3a\ngzdtOvYND0r1eepzcGUDgFtOirZbis0WwopdrIzs/cPlaaz+B4EVfZb5Dl7v\nC7Zu+DXhA+fGLkX12TIKwCa5hzIRPG2rSTO2LLg36Z3DOLeoPXMtXZjOa48x\nK/L7la3yWHFzgx3y0tu3zA77YhmCXRx37teDyZkGb5FPqGLFc6BaqNyRuDjj\nKavUXVyq0S2/1Jnr0vfhslh+Sy2/xTg4QnJznngz2hmZgqKJyJxdlTcNFDGB\n1C9x5EF/wwFtONsvNHbL2HSfKQRwokv62dqZ2t6nRBLqnbAH7en1K19OFR0L\nwSOoYLW3IA13RP3cKjWeXUDEyOWGQynM0AsE/qqLhI4jMmBtqVVhrqo/F9vI\nx93B6TAALFrJApkEZrqGSbf+xUxnBb2rnzAnoRHw6XSH+YPnX8zK/t9MajJt\nyCl2yuaA8reswHFbhm89OuCzZsfsHBO9bgFxtfEv6bkAkeidEVn687S1er2S\nIDaDPB9W7VwnvtuQbV770e6tO1wwrkmmRjupSUC/EORzEerANvhfsLc1R80U\nlebZOCt1LdH1pQfJ+6myU3Qs0xWa3Zw+xQg0XG7kAxrgV1tvAm7SouV5FPiq\npjl90ng+0e53YTa3o8rgko51hdxH4iS4bg6o2Mud6nWZy//o7bTvZZ3y60ox\n/Dlh\r\n=ZSV3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8Yo4javJTWv2wVonzq4yxeE9WZzvy8qwbTngPwi97BgIgHkDQP/hpxx3xCsp9qnZuLPxhdlAujLWJfiG+UfFXt1w="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_0.1.0-beta.2_1533902594575_0.19871490943254466"},"_hasShrinkwrap":false},"0.1.0-beta.3":{"name":"dotenv-flow-webpack","version":"0.1.0-beta.3","description":"A simple webpack plugin to support `dotenv-flow`.","keywords":["dotenv","dotenv-flow","webpack","node_env","process.env","environment","variables","development","test","production","local"],"homepage":"https://github.com/hk-labs/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/hk-labs/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/hk-labs/dotenv-flow-webpack/issues"},"main":"index.js","browser":"browser.js","peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4"},"dependencies":{"dotenv-flow":"^0.1.0"},"devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^9.0.0","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","chai":"^4.1.2","esdoc":"^1.0.4","esdoc-standard-plugin":"^1.0.0","husky":"^0.14.3","mocha":"^5.0.1","nyc":"^12.0.1","rimraf":"^2.6.2","sinon":"^6.0.0","standard":"^11.0.0","webpack":"^4.6.0"},"scripts":{"precommit":"npm run lint","prepush":"npm t","lint":"standard","predoc":"rimraf docs","doc":"esdoc -c config/doc.json","pretest":"npm run build","test":"nyc _mocha --compilers js:babel-register","posttest":"nyc report --reporter=lcov","prebuild":"rimraf dist","build":"babel --copy-files --out-dir dist src","travis":"npm run lint && npm t"},"standard":{"parser":"babel-eslint"},"babel":{"presets":["env"],"plugins":["transform-object-assign"]},"nyc":{"include":["src/**/*.js","dist/**/*.js"]},"authors":["Matt Steele <matt@omnionline.us> (http://omnionline.us/)","Dan Kerimdzhanov <kerimdzhanov@gmail.com> (https://github.com/kerimdzhanov)"],"license":"MIT","gitHead":"6204db828c17ec263b0c698bbd80bc3aa5c5d068","_id":"dotenv-flow-webpack@0.1.0-beta.3","_npmVersion":"6.2.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"dist":{"integrity":"sha512-EgcEu1hfCq8vE0g1ig+TFQVOUhFxdj4NEQws2PhFK3lYXOk5KMaD2xrd9EwiL5J0yT9Q6qJ9U+vUoEI6T3S/hA==","shasum":"3ce5dcdf34060a2e0394432748b0435e46069131","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-0.1.0-beta.3.tgz","fileCount":6,"unpackedSize":11796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbi+ZnCRA9TVsSAnZWagAAOdEQAJNvT8m2x7X0XQtBxgta\nbYiV7d1S58NtOA4O0Ud/UdFgyeVcW7Nu+zBwMuICYod8RxsYf18KUvwawL5I\njCWh4IIqlgr9dJccsoTkTCk1OUXAEuC80/NdD9XelbSiXjq2m5wuH5IRhKvr\nlExphLUMYu+H9uKuwfoBxKBAI34dOAQPPhPHd4k2DNKrg4YaKBCXr8100mwx\nUjO2X4msMe0L4iEm1aST03ziGysy1tMPSmkEKeEw8qcTOIi+D3+IX5YxQ/KZ\nB6inJeMx5uzAOarC/afHGEJdq2shxXsxRYIeSSFk7dkZV2jreJRzBeEmcWIy\nW0JcJXNsHrYJYaVOlmazMxl31KvIZOdRNAKlWBjOAM0xb29PWcqR+ef7U3mv\nF4+8ce3UxtmTu4hMyXDzNFbvy2+ppG0NbrZbWc9wiQYCE7KK6P7bJ7s45gdk\nWAuir7LXVvU6GicZuCPi27TRsPBGKnKwJFMkIV3AOLicMshB0/4D2k2eVIDz\nH34hGTfp5tas4OphQ2dW1wY0eWKbOmYLYyh/QKCew5yDb4JosqAlrJllFg7A\n77fE4j/2XKqX3djVY8lfLJzz82+sU8jm2WmRxpMYyd+C7u6eN1cEu2BpA1I5\n9pSa/lbFRTTxhSlEEjyS1Cz+Qvud2hnrfcW5B/umgttF050nYHQ1pK2mEqLc\nNEG+\r\n=qJ21\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0ThCbV1xT52ORNvOGjIcsOtgeBfiuymaNtZCCCAzplgIhAMrkZiUCtyiqEIMGFmlOg9btOLKEzy5PjGhL4zsKMA+E"}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_0.1.0-beta.3_1535895142841_0.1655696636920554"},"_hasShrinkwrap":false},"1.0.0-rc.1":{"name":"dotenv-flow-webpack","version":"1.0.0-rc.1","description":"A secure webpack plugin that gives the ability to access environment variables via `process.env.*` defined in your `.env[.development|test|production]` files within your web applications built with webpack.","keywords":["dotenv-flow","webpack","node_env","process.env","development","test","production","local"],"homepage":"https://github.com/kerimdzhanov/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/kerimdzhanov/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/kerimdzhanov/dotenv-flow-webpack/issues"},"main":"lib/dotenv-flow-webpack.js","peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4"},"dependencies":{"dotenv-flow":"^3.0.0-rc.1"},"devDependencies":{"chai":"^4.2.0","conventional-changelog-cli":"^2.0.17","mocha":"^6.1.4","sinon":"^7.3.2","sinon-chai":"^3.3.0","webpack":"^4.30.0"},"engines":{"node":">= 8.0.0"},"scripts":{"test":"mocha -r mocha.conf.js test/*.spec.js","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"author":{"name":"Dan Kerimdzhanov"},"license":"MIT","gitHead":"b633489b7a113bb92ee28e5e55ff6e5eb8d3c3a5","_id":"dotenv-flow-webpack@1.0.0-rc.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"dist":{"integrity":"sha512-7CVxKIuO3s7c3GFZlhwTJdH8OSIU3navK/MLIdgmNbG1w6LuTNENvJM9syDpMh461+ouNf/iRX3JGLisCoEcLg==","shasum":"c9d19c3b42618df7fdabbcb5f4095843cc7208a0","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-1.0.0-rc.1.tgz","fileCount":4,"unpackedSize":11075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHUiYCRA9TVsSAnZWagAA87oP/Ranh5PsM0Z3Lip3miKb\nLtJ9fiBd9w49rYQnHnVYzpeQuvmk+WenPPEoAFJvQuyxqFETDfDzeMAuCUO8\nVip0CYWl51tynLcaQF8lWZxrKVrXbEeULsav2i4R21twwTfb9/gA1UPRSKlk\nNNSTHtxL6Yj9thxBtpYGIOcNhfVq2ZHimREOpmpCVygzra5QmEFPkznm0uPs\nTNngTQJ+oEQqqttRdhfYWWN6x2N+zXq7nDWvLct+GjDp92vG1rV4CdtnuMFQ\nEoNhYUDsjDhiOK+GMARMepBWATMObmg5qxQxJ5jmfwAKhlzjVcporH1SbEBb\nD/dzVJzuCxE2C5W9ccWnflmdvu8A4Wp7EHbxM2eXD5dcMtGagDLH0oYDVsq5\n7W9dyI6dwdsgQsiqgMhujxLnBr5EQT1lr8dFGkmz/1OTd6dROug4raayOz/w\n9mLEbV3ApmehIK8eQYYE1VzY9vUAF0CIpZImleibqCc4W0E8UVmMIVbJrpmk\nP220vuGHoVkq1m5p4skn7fuiz00PjXIG0+VovpOdgY7EpNxi+690pSHDnXI6\n4TV0pb9bGHhwlPfJHpeYBkvjBpvLjSXPIX4rimxvCF8tijlGnouBYuPrCzoY\nB4E1sNpIqb/uO5KFHPEZ824WzLlf9x8O/ySIpPpuEPHb9ZGDO/JLXbWd35cN\nk42U\r\n=7ODs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDE01Xb7H6U3cZN4SNk0hZODOp/7UUECiEVgD2XZOHNyAiEAql8mU6O873PYXV8gLJOgRxBnEr9ffMNGzvUW1FXOGFw="}]},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_1.0.0-rc.1_1562200215824_0.0076007315827049116"},"_hasShrinkwrap":false},"1.0.0-rc.2":{"name":"dotenv-flow-webpack","version":"1.0.0-rc.2","description":"A secure webpack plugin that gives the ability to access environment variables via `process.env.*` defined in your `.env[.development|test|production]` files within your web applications built with webpack.","keywords":["dotenv-flow","webpack","node_env","process.env","development","test","production","local"],"homepage":"https://github.com/kerimdzhanov/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/kerimdzhanov/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/kerimdzhanov/dotenv-flow-webpack/issues"},"main":"lib/dotenv-flow-webpack.js","peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4"},"dependencies":{"dotenv-flow":"^3.0.0-rc.1"},"devDependencies":{"chai":"^4.2.0","conventional-changelog-cli":"^2.0.17","mocha":"^6.1.4","sinon":"^7.3.2","sinon-chai":"^3.3.0","webpack":"^4.30.0"},"engines":{"node":">= 8.0.0"},"scripts":{"test":"mocha -r mocha.conf.js test/*.spec.js","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"author":{"name":"Dan Kerimdzhanov"},"license":"MIT","gitHead":"e85665a84fc830ae0774f80b8555142c22763419","_id":"dotenv-flow-webpack@1.0.0-rc.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"dist":{"integrity":"sha512-jYr9PQMaX7Uvk83KwfIXm47UkkLy2JmlBXj+3YB+ZjpPGdS1dPX4gckjke+CSvaH4qh0ODTUQC90w4BtfeR68w==","shasum":"635ebbe51b428ba05f3bb8ed53e0665d81f04408","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-1.0.0-rc.2.tgz","fileCount":5,"unpackedSize":12002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHpFKCRA9TVsSAnZWagAAhCcP/26uB1z4v1YTx3Tv08To\n2uh5oIzmwPmUf+bAr9yBSMxQnlLrU4oDDQ26Y9aCQgYC93oMyVBhOcHgpGyI\nDKq1qUElDc2jsmCoLQrH1S0E78Dup8+vGxC6jwZydYmWWPCoGZ3YZ+qWvDKZ\nptUz9ozRwVU66q5p8IaoNe2inQXIjiYrRGYSVkPw4RkMmFUTxt/mgPSX5roG\nL8YV9m62Q+r1oLfWX89WSPH6WVZ+WG8Pq4S6mW4k4ULFlYoZasV2oM3cehrb\nIduZPnN9A2Nzyvcl1ZswgfwopsPX2mjfMOUlIr2qWk5G9QpMonXThD1+FNJ4\nKdAMALs7txhh/UOD+aRuC31Cw+mjabL8YFgToLOdmNpeVu9Xfz61CNOCY3rT\n3dgXiOExlHZ7e0josuj236QdgMbQy2OLQ05OFSFVUlfQ7eYm5FX9Ws3gHovH\nxV80GwmhsJxeZiWrskczUbvntrMzT52iD5/qRwQHHyWCouDGcpnSrWp4NdKP\ndIEWgRYJ6oi62wXx6up1vfCsXBC4Og3d5HiDuihey1KresYNB457Za3uyzQY\nDhOV14m4P6YXGK+nShrA50ZZVYMv9XTGVn58m5uheAVFuWyQ5yyJGa5uRLt3\nX0xtOk6uvoCnbfMaUEd9f0jVKfGAn2ps363kDnyoQng5ZR8gDTU+ClJjKPOK\nMTtL\r\n=9O8R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkGxE4SWc41SNJ0g2MNYq6wkdgo8NMLsOaE6iEsMMQLAiEApWImn9utfwYrMLwsVFhYBCgK20vUbu7vGO7bsSvZpG0="}]},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_1.0.0-rc.2_1562284362073_0.7133381021286676"},"_hasShrinkwrap":false},"1.0.0":{"name":"dotenv-flow-webpack","version":"1.0.0","description":"A secure webpack plugin that gives the ability to access environment variables via `process.env.*` defined in your `.env[.development|test|production]` files within your web applications built with webpack.","keywords":["dotenv-flow","webpack","node_env","process.env","development","test","production","local"],"homepage":"https://github.com/kerimdzhanov/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/kerimdzhanov/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/kerimdzhanov/dotenv-flow-webpack/issues"},"main":"lib/dotenv-flow-webpack.js","peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4"},"dependencies":{"dotenv-flow":"^3.0.0-rc.1"},"devDependencies":{"chai":"^4.2.0","conventional-changelog-cli":"^2.0.17","mocha":"^6.1.4","sinon":"^7.3.2","sinon-chai":"^3.3.0","webpack":"^4.30.0"},"engines":{"node":">= 8.0.0"},"scripts":{"test":"mocha -r mocha.conf.js test/*.spec.js","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"author":{"name":"Dan Kerimdzhanov"},"license":"MIT","gitHead":"431ce457154bce29a6bc893e990e75ca5cd6ead8","_id":"dotenv-flow-webpack@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"dist":{"integrity":"sha512-mylbRzNPUJexeEK8Qoj8B3KyfB4yKclOxxY6R3mPIbdHkudqDETqi7MNZJOjGPeXNbuXblvl41Y1sm991xY0sQ==","shasum":"c10158c441672f4bf363f28a21e2d92ac96b313f","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-1.0.0.tgz","fileCount":5,"unpackedSize":12175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdH+U4CRA9TVsSAnZWagAAtLsP/jg5/Rfzx6HO+nKchuCY\nBzWKezI2z8HdU0iTLoxQbdZteiwKhIIJ/bsknoXeZIjN6cqxju9INK7xXkea\nS7yqidvQjP94Kam2/sS9cJu/eSb1iQB0lKQ+kSNbGP3IlDdAnzYNEWgNAxuZ\nsCl+5u2aKbaXg3TXkHLIS8+qpD3jl7vnxbZZqeGSZUHHaunBMm524Jeqqjxm\nEcD9FcKd8C+sqcWqsgGcG6N7JxwTg1cUEkHek8qiEyycuiLk0px34sj6Dn4X\nHuG0qCE1ZY9jku5HAQ7N/TDGvjfcIOapQ53b7s0K2CdLvB/uFyNTFcTwSC5s\nW6DycpbxTTEb0oDkmjVRRj9Xi4rbUIrHeweShJaiRjWfMhubHcjwoENP2qLC\nXRMwS/iFPcBlW+YEcRda6BFqQc4yWhrvmLH9X9YY0IDj6y6ePLB4Ic52fOrd\nOJ7xMxe/6lT4BLXny6r/rRqsn29sAolP0SAYlM7TqiRCCKpR9X2po10fx02X\nrFgkKTJUPwf2viKk+Ke3LjiGS3JM+Kazt5m024asi2+PEzSFAWwYSW80NOyJ\nQUcbDqLZl4DggPpPW7VeJ7kLkJ+TqdS3fEQudvzPRp1bD5yKaJ9xK+R5zOoj\n87ogenmIJreJUUgMdlKZUftvxgUs+xqB33rZLdhv2QdFgJ+pmucvHvqRLMEF\nZsr0\r\n=//98\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHtLEgNqLoUx1a/Pz80dYjp+H5KoOHmSlZvjRRo2HlhnAiEAkUx33rALfKnmPU33mfNrxafWUF7/U47KG2STRMopFz8="}]},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_1.0.0_1562371383441_0.09584309457671703"},"_hasShrinkwrap":false},"1.1.0":{"name":"dotenv-flow-webpack","version":"1.1.0","description":"A secure webpack plugin that gives the ability to access environment variables via `process.env.*` defined in your `.env[.development|test|production]` files within your web applications built with webpack.","keywords":["dotenv-flow","webpack","node_env","process.env","development","test","production","local"],"homepage":"https://github.com/kerimdzhanov/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/kerimdzhanov/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/kerimdzhanov/dotenv-flow-webpack/issues"},"main":"lib/dotenv-flow-webpack.js","peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4"},"dependencies":{"dotenv-flow":"^3.2.0"},"devDependencies":{"chai":"^4.2.0","conventional-changelog-cli":"^2.0.17","mocha":"7.2.0","sinon":"^9.0.2","sinon-chai":"^3.5.0","webpack":"^4.43.0"},"engines":{"node":">= 8.0.0"},"scripts":{"test":"mocha -r mocha.conf.js test/*.spec.js","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"author":{"name":"Dan Kerimdzhanov"},"license":"MIT","gitHead":"d05577efbcd44dcc38daf30bbf437eb073d276fe","_id":"dotenv-flow-webpack@1.1.0","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-U6klxT4Tjeka7RoEr//8b4fBm+LupsWgiHOoAE/vSfKzx4g8xpRh4dn59QyyTczbLS7SjKSHchlAHzhSu2ER3Q==","shasum":"40976386d3bf93ad1d636cacd62ef79ed14917d5","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-1.1.0.tgz","fileCount":5,"unpackedSize":12412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe92W2CRA9TVsSAnZWagAAayMQAIB+H+jZpsR2OIEJ3PKv\njF3cHHecZ0/tkxDsP+KYTYXrX2ShxbKW0ccDitB3Pk/XJ0naMZlfbZzTIzgB\nzXhFFnBvrU7lNtMPbS90ntrxIjwRressDP8xDTGNlb5dskAjxP+HZEbXqU3d\n7Dg7wpXcfXmzEXvqVLp+jtIxhLSfOED4vjyE07Ivd9XbEDEoiohXZ1ePGqf9\n0ndqpVD+TmyoxZ54JkOnb1yznM0XosDOzYJzmrxj5z4m/rGuHDdMMEveCOAc\n2T8FtsnbRGzCBB2KLD9yycHjR6+cS2CEhdz38l4WyZdYxcAwzM02ZFdC78yu\no9sW+GtW2RVqEk2wxnTOtNhcjwsaz6DLeUb8kjCoQ/xTZhOFPaQ83c5Lho57\nPbIv4NJllcrOADqr0QNYEaHQ2OrvBfxQEXFfC4NuP3J5HWv27Yqyodu7cGz6\nVI0fiSxqgEz/ZBrVsCUGVqK+8xrWSM3m+n0l+mkVBq6UUHoGxI30vxWRo1Cr\nSIOaEHFbroF16fyAXz8pPS7fJYeA9lYl9cK7aNFb0JdFrZhV6O2jBPbNdjOW\nK9NCJwz8OqZX0FYukQMF3uuvetbLHo2/MUP+ZaBKPYibnwtcNffrSW0npi6C\nIMXCLRVERCbamMLxRHlP1bd2CJkxCJZOOwrhnPh0KU+572WRygRIvyw0yYny\nX99V\r\n=4QoK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnhuKpM1NCdGs05hrdXNkH5RoiY0Y1T2G+ZnY8liOp5wIhAKw8USutEfRTPAwDVjb/d7bL5+7iCguEX4VyuP/9VSJC"}]},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_1.1.0_1593271733653_0.258810542056112"},"_hasShrinkwrap":false},"1.2.0-rc.1":{"name":"dotenv-flow-webpack","version":"1.2.0-rc.1","description":"A secure webpack plugin that gives the ability to access environment variables via `process.env.*` defined in your `.env[.development|test|production]` files within your web applications built with webpack.","keywords":["dotenv-flow","webpack","node_env","process.env","development","test","production","local"],"homepage":"https://github.com/kerimdzhanov/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/kerimdzhanov/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/kerimdzhanov/dotenv-flow-webpack/issues"},"main":"lib/dotenv-flow-webpack.js","peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4 || ^5"},"dependencies":{"dotenv-flow":"^3.3.0"},"devDependencies":{"chai":"^4.3.8","conventional-changelog-cli":"^2.0.17","mocha":"^10.2.0","sinon":"^16.0.0","sinon-chai":"^3.7.0","webpack":"^5.88.2"},"engines":{"node":">= 8.0.0"},"scripts":{"test":"mocha -r mocha.conf.js test/*.spec.js","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"author":{"name":"Dan Kerimdzhanov"},"license":"MIT","readmeFilename":"README.md","readme":"# dotenv-flow-webpack\n\n<img src=\"https://raw.githubusercontent.com/kerimdzhanov/dotenv-flow-webpack/master/dotenv-flow-webpack@2x.png\" alt=\"dotenv-flow-webpack\" width=\"210\" height=\"230\" align=\"right\" />\n\nA secure webpack plugin that gives the ability to access environment variables via `process.env.*` defined in your `.env`, `.env.development`, `.env.test`, `.env.production`, etc,. files within your web applications built with webpack.\n\nStoring configuration in _environment variables_ separate from code and grouping them by environments like _development_, _test_ and _production_ is based on [The Twelve-Factor App](https://12factor.net/config) methodology.\n\n> backed by [dotenv-flow](https://github.com/kerimdzhanov/dotenv-flow), inspired by [dotenv-webpack](https://github.com/mrsteele/dotenv-webpack)\n\n[![Build Status](https://github.com/kerimdzhanov/dotenv-flow-webpack/actions/workflows/ci.yml/badge.svg?branch=master&event=push)](https://github.com/kerimdzhanov/dotenv-flow-webpack/actions/workflows/ci.yml)\n[![npm version](https://badge.fury.io/js/dotenv-flow-webpack.svg)](https://badge.fury.io/js/dotenv-flow-webpack)\n[![Known Vulnerabilities](https://snyk.io/test/github/kerimdzhanov/dotenv-flow-webpack/badge.svg?targetFile=package.json)](https://snyk.io/test/github/kerimdzhanov/dotenv-flow-webpack?targetFile=package.json)\n\n## Installation\n\nUsing NPM:\n\n```sh\n$ npm install dotenv-flow-webpack --save-dev\n```\n\nUsing Yarn:\n\n```sh\n$ yarn add dotenv-flow-webpack --dev\n```\n\n\n## Description\n\nTechnically, the plugin wraps the [`dotenv-flow` API](https://github.com/kerimdzhanov/dotenv-flow#api-reference) providing the ability to configure it in your `webpack.config.js` file(s).\n\nNote that plugin uses a **secure** strategy of replacing of the `process.env.*` code entries upon the build process, thus **it exposes only environment variables that are used in your code**.\n\n\n## Usage example\n\nLet's suppose you have the following files in your project:\n\n```sh\n# .env\n\nDATABASE_HOST=127.0.0.1\nDATABASE_PORT=27017\nDATABASE_USER=default\nDATABASE_PASS=\nDATABASE_NAME=my_app\n\nSERVICE_URL=/api/v1\n```\n\n```sh\n# .env.development\n\nDATABASE_NAME=my_app_dev\n\nSERVICE_URL=http://localhost:3000/api/v1\n```\n\n```sh\n# .env.test\n\nSERVICE_URL=https://localhost:3001/api/v1\n```\n\n```sh\n# .env.production\n\nDATABASE_HOST=10.0.0.32\nDATABASE_PORT=27017\nDATABASE_USER=devops\nDATABASE_PASS=1qa2ws3ed4rf5tg6yh\nDATABASE_NAME=application_storage\n\nSERVICE_URL=https://myapp.com/api/v1\n```\n\n```js\n// webpack.config.js\n\nconst DotenvFlow = require('dotenv-flow-webpack');\n\nmodule.exports = {\n  // ...\n  plugins: [\n    new DotenvFlow()\n  ],\n  // ...\n};\n```\n\n```js\n// file1.js\n\nif (process.env.NODE_ENV !== 'production') {\n  console.log(`Running in the \"${process.env.NODE_ENV}\" mode.`);\n}\nelse {\n  console.log('We are in production!');\n}\n\nconst USERS_ENDPOINT = process.env.SERVICE_URL + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nThus, when you build your app with `NODE_ENV=development`, the resulting bundle will include something like this:\n\n```js\n// file1.js\n\nif (true) {\n  console.log(\"Running in the \".concat(\"development\", \" mode.\"));\n} else {}\n\nconst USERS_ENDPOINT = \"http://localhost:3000/api/v1\" + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nOr if you build your app with `NODE_ENV=production`, then the output will look like:\n\n```js\n// file1.js\n\nif (false) {} else {\n  console.log('We are in production!');\n}\n\nconst USERS_ENDPOINT = \"https://myapp.com/api/v1\" + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nAnd after all the optimization procedures it will be compressed till:\n\n```js\nconsole.log(\"We are in production!\");\nconsole.log(\"USERS_ENDPOINT:\", \"https://myapp.com/api/v1/users\");\n```\n\nMake a note that values of `DATABASE_(HOST/PORT/USER/PASSWORD/NAME)` will **not** be present in the resulting bundle while they are not referenced anywhere in the code.\n\n\n## Configuration\n\nAs a wrapper of [dotenv-flow](https://github.com/kerimdzhanov/dotenv-flow), **dotenv-flow-webpack** has the same configuration options extending them with its own described below.\n\n##### `options.node_env`\n###### Type: `string`\n###### Default: `process.env.NODE_ENV`\n\nBy default, the plugin refers the `NODE_ENV` environment variable to detect the environment to use.\nWith the `node_env` option you can force the module to use your custom environment value independent of `process.env.NODE_ENV`.\n\n```js\nmodule.exports = (env, argv) => {\n  // ...\n  config.plugins.push(new DotenvFlow({\n    node_env: env.production ? 'production' : 'development'\n  }));\n  // ...\n};\n```\n\n##### `options.default_node_env`\n###### Type: `string`\n###### Default: _undefined_\n\nIf the `NODE_ENV` environment variable is not set, the module doesn't load/parse any `NODE_ENV`-specific files at all.\nTherefore, you may want to use `\"development\"` as the default environment.\n\n```js\nnew DotenvFlow({\n  default_node_env: 'development'\n})\n```\n\n##### `options.path`\n###### Type: `string`\n###### Default: `process.cwd()` _(current working directory)_\n\nWith the `path` initialization option you can specify a path to `.env*` files directory.\n\n```js\nnew DotenvFlow({\n  path: '/path/to/env-files-dir'\n})\n```\n\nIf the option is not provided, the current working directory will be used.\n\n##### `options.encoding`\n###### Type: `string`\n###### Default: `'utf8'`\n\nYou can specify the encoding of your files containing environment variables.\n\n```js\nnew DotenvFlow({\n  encoding: 'base64'\n})\n```\n\n##### `options.system_vars`\n###### Type: `boolean`\n###### Default: `false`\n\nIf `true`, all the predefined `process.env.*` variables will also be loaded.\nIn accordance to the dotenv-flow's specification, all the predefined system environment variables will have higher priority over the `.env*` files defined.\n\n```js\nnew DotenvFlow({\n  system_vars: true\n})\n```\n\n##### `options.silent`\n###### Type: `boolean`\n###### Default: `false`\n\nSet to `true` to suppress all errors and warnings.\n\n\n## Additional information\n\nPlease refer the [dotenv-flow documentation](https://github.com/kerimdzhanov/dotenv-flow#readme) to learn more about the `.env*` files concept.\n\nHere is the list of related sections:\n\n * [`NODE_ENV`-specific `.env*` files](https://github.com/kerimdzhanov/dotenv-flow#node_env-specific-env-files)\n * [Files under version control](https://github.com/kerimdzhanov/dotenv-flow#files-under-version-control)\n * [Variables overwriting/priority](https://github.com/kerimdzhanov/dotenv-flow#variables-overwritingpriority)\n\n\n## Contributing\n\nFeel free to dive in! [Open an issue](https://github.com/kerimdzhanov/dotenv-flow-webpack/issues/new) or submit PRs.\n\n\n## Running tests\n\nUsing NPM:\n\n```sh\n$ npm test\n```\n\nUsing Yarn:\n\n```sh\n$ yarn test\n```\n\n\n## License\n\nLicensed under [MIT](LICENSE) © 2019-2020 Dan Kerimdzhanov\n","licenseText":"Copyright (c) 2019 Dan Kerimdzhanov <kerimdzhanov@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"dotenv-flow-webpack@1.2.0-rc.1","dist":{"shasum":"c947ccb17a99dc31bbe109183f8e5ddeba919a8f","integrity":"sha512-GttCg9gNNztTFW+n4o8XIHxdxfpUymSER7Rqdn0ueb1dW03yZfkNKzX5G8tY/ZofBiCYa7RMPoWz01CdSXA8Mw==","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-1.2.0-rc.1.tgz","fileCount":7,"unpackedSize":13086,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpKJAwcOeepoQU8WskOGsMvz/GVPGKd6Otlnd/T/XXQAiEAzcyVlhQDHgBPSiwNC1s7rJ9nxF/o5WeXe1LK+pFIwoQ="}]},"_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"directories":{},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_1.2.0-rc.1_1694897677603_0.35866123055833055"},"_hasShrinkwrap":false},"1.2.0":{"name":"dotenv-flow-webpack","version":"1.2.0","description":"A secure webpack plugin that gives the ability to access environment variables via `process.env.*` defined in your `.env[.development|test|production]` files within your web applications built with webpack.","keywords":["dotenv-flow","webpack","node_env","process.env","development","test","production","local","env","environment","variables"],"homepage":"https://github.com/kerimdzhanov/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/kerimdzhanov/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/kerimdzhanov/dotenv-flow-webpack/issues"},"main":"lib/dotenv-flow-webpack.js","peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4 || ^5"},"dependencies":{"dotenv-flow":"^3.3.0"},"devDependencies":{"chai":"^4.3.8","conventional-changelog-cli":"^2.0.17","mocha":"^10.2.0","sinon":"^16.0.0","sinon-chai":"^3.7.0","webpack":"^5.88.2"},"engines":{"node":">= 8.0.0"},"scripts":{"test":"mocha -r mocha.conf.js test/*.spec.js","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"author":{"name":"Dan Kerimdzhanov"},"license":"MIT","licenseText":"Copyright (c) 2019-2023 Dan Kerimdzhanov <kerimdzhanov@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"dotenv-flow-webpack@1.2.0","dist":{"shasum":"8ad4bdcf6c38244fcab600c5be94617068a50d8c","integrity":"sha512-crcQZuQFZQjJMvryvwT3lLRksPqPeVL9oKDzH8JFNAm01sKsp2GLlp95njstHlFW9UN7tiEo1dHs3X7U+2sNUA==","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-1.2.0.tgz","fileCount":7,"unpackedSize":13645,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCltfxrhjQZAabexOgupSujhSvNkalSN1bP7BYsLhvK0QIgVMnUMQlJAPBCFi8DdEhicht9mHtw8zO8QgoEHAEOq6A="}]},"_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"directories":{},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_1.2.0_1695345543743_0.3621654957963254"},"_hasShrinkwrap":false},"2.0.0-rc.1":{"name":"dotenv-flow-webpack","version":"2.0.0-rc.1","description":"A webpack plugin that allows you to securely use environment variables within your javascript web application, loading them using dotenv-flow's `.env*` files loading strategy.","keywords":["dotenv-flow","webpack","node_env","process.env","development","test","production","local","env","environment","variables"],"homepage":"https://github.com/kerimdzhanov/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/kerimdzhanov/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/kerimdzhanov/dotenv-flow-webpack/issues"},"main":"lib/dotenv-flow-webpack.js","peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4 || ^5"},"dependencies":{"dotenv-flow":"^4.0.0-rc.3"},"devDependencies":{"@types/sinon-chai":"^3.2.9","chai":"^4.3.8","conventional-changelog-cli":"^2.0.17","mocha":"^10.2.0","sinon":"^16.0.0","sinon-chai":"^3.7.0","webpack":"^5.88.2"},"engines":{"node":">= 12.0.0"},"scripts":{"test":"mocha -r mocha.conf.js test/*.spec.js","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"author":{"name":"Dan Kerimdzhanov"},"license":"MIT","gitHead":"a0288bbb454c8f86da018bebf0a1bdcbe1bf0c67","readme":"# dotenv-flow-webpack\n\n<img src=\"https://raw.githubusercontent.com/kerimdzhanov/dotenv-flow-webpack/master/dotenv-flow-webpack@2x.png\" alt=\"dotenv-flow-webpack\" width=\"210\" height=\"230\" align=\"right\" />\n\nA Webpack plugin that allows you to securely use environment variables within your javascript web application, loading them using _[dotenv-flow](https://github.com/kerimdzhanov/dotenv-flow)'s_ `.env*` files loading strategy.\n\n> _dotenv-flow_ extends _[dotenv](https://github.com/motdotla/dotenv)_, adding support of `NODE_ENV`-specific `.env*` files _like `.env.development`, `.env.test`, `.env.stage`, and `.env.production`,_ and the appropriate `.env*.local` overrides allowing your app to have multiple environments with selectively-adjusted environment variable setups and load them dynamically depending on the current NODE_ENV.\n\n🌱 Inspired by _[dotenv-webpack](https://github.com/mrsteele/dotenv-webpack)_, _[CreateReactApp](https://create-react-app.dev/)'s **storing configs in `.env*` files** approach_,\nthe _Twelve-Factor App methodology_ in general, and _its **[store config in the environment](https://12factor.net/config)** section_ in particular.\n\n[![Build Status](https://github.com/kerimdzhanov/dotenv-flow-webpack/actions/workflows/ci.yml/badge.svg?branch=master&event=push)](https://github.com/kerimdzhanov/dotenv-flow-webpack/actions/workflows/ci.yml)\n[![npm version](https://badge.fury.io/js/dotenv-flow-webpack.svg)](https://badge.fury.io/js/dotenv-flow-webpack)\n[![Known Vulnerabilities](https://snyk.io/test/github/kerimdzhanov/dotenv-flow-webpack/badge.svg?targetFile=package.json)](https://snyk.io/test/github/kerimdzhanov/dotenv-flow-webpack?targetFile=package.json)\n\n\n## Key Features\n\n- **Environment-based configuration**: You can have different `.env*` files for various environments like _development_, _test_, and _production_.\n- **Variable overriding** _(or environment-specific cascade)_: Allows you to selectively override the default and environment-specific variables with the appropriate `.env*.local` overrides.\n- **Secure**: Injects variables by replacing the `process.env.<YOUR_VAR>` entries with the actual values from your `.env*` files during the build process, thus _**exposing only those variables that are explicitly used in your code**_.\n- **[dotenv-flow](https://github.com/kerimdzhanov/dotenv-flow) as a Webpack plugin**: directly integrates dotenv-flow with all its flexibility options to your build process making it easier to use environment variables without extra build scripts.\n\n\n## Installation\n\nUsing NPM:\n\n```sh\n$ npm install dotenv-flow-webpack --save-dev\n```\n\nUsing Yarn:\n\n```sh\n$ yarn add dotenv-flow-webpack --dev\n```\n\n\n## Basic usage\n\nHere's how to include the **dotenv-flow-webpack** to your `webpack.config.js`:\n\n```js\n// webpack.config.js\n\nconst DotenvFlow = require('dotenv-flow-webpack');\n\nmodule.exports = {\n  // ...other webpack configurations\n  plugins: [\n    new DotenvFlow({\n      // configuration options\n    })\n  ],\n  // ...other webpack plugins\n};\n```\n\n## Configuration options\n\n#### `node_env`\n###### Type: `string`\n###### Default: `process.env.NODE_ENV || options.default_node_env`\n\nBy default, the plugin refers the `NODE_ENV` environment variable to detect the environment to use.\nWith the `node_env` option you can force the module to use your custom environment value independent of `process.env.NODE_ENV`.\n\n```js\nnew DotenvFlow({\n  node_env: 'production'\n})\n```\n\n#### `default_node_env`\n###### Type: `string`\n###### Default: _undefined_\n\nIf the `NODE_ENV` environment variable is not set, the module doesn't load/parse any `NODE_ENV`-specific files at all.\nTherefore, you may want to use `\"development\"` as the default environment.\n\n```js\nnew DotenvFlow({\n  default_node_env: 'development'\n})\n```\n\n#### `path`\n###### Type: `string`\n###### Default: `process.cwd()` _(current working directory)_\n\nWith the `path` initialization option you can specify a path to `.env*` files directory.\n\n```js\nnew DotenvFlow({\n  path: './config'\n})\n```\n\nIf the option is not provided, the current working directory is used.\n\n#### `pattern`\n###### Type: `string`\n###### Default: `'.env[.node_env][.local]'`\n\nAllows you to change the default `.env*` files' naming convention\nif you want to have a specific file naming structure for maintaining\nyour environment variables' files.\n\n**Default Value**\n\nThe default value `\".env[.node_env][.local]\"` makes *dotenv-flow-webpack*\nlook up and load the following files in order:\n\n1. `.env`\n2. `.env.local`\n3. `.env.${NODE_ENV}`\n4. `.env.${NODE_ENV}.local`\n\nFor example, when the `proess.env.NODE_ENV` (or `options.node_env`) is set to `\"development\"`,\n*dotenv-flow-webpack* will be looking for and parsing (if found) the following files:\n\n1. `.env`\n2. `.env.local`\n3. `.env.development`\n4. `.env.development.local`\n\n**Custom Pattern**\n\nHere is a couple of examples of customizing the `.env*` files naming convention:\n\nFor example, if you set the pattern to `\".env/[local/]env[.node_env]\"`,\n*dotenv-flow-webpack* will look for these files instead:\n\n1. `.env/env`\n2. `.env/local/env`\n3. `.env/env.development`\n4. `.env/local/env.development`\n\n… or if you set the pattern to `\".env/[.node_env/].env[.node_env][.local]\"`,\nthe plugin will try to find and parse:\n\n1. `.env/.env`\n2. `.env/.env.local`\n3. `.env/development/.env.development`\n4. `.env/development/.env.development.local`\n\n› Please refer to [`dotenv-flow.listFiles(options)`](https://github.com/kerimdzhanov/dotenv-flow#listfilesoptions--string) to learn more.\n\n#### `encoding`\n###### Type: `string`\n###### Default: `'utf8'`\n\nYou can specify the encoding of your files containing environment variables.\n\n```js\nnew DotenvFlow({\n  encoding: 'base64'\n})\n```\n\n#### `system_vars`\n###### Type: `boolean`\n###### Default: `false`\n\nIf `true`, all the predefined `process.env.*` variables will also be loaded.\nIn accordance to the dotenv-flow's specification, all the predefined system environment variables will have higher priority over the `.env*` files defined.\n\n```js\nnew DotenvFlow({\n  system_vars: true\n})\n```\n\n#### `options.debug`\n###### Type: `boolean`\n###### Default: `false`\n\nEnables detailed logging to debug why certain variables are not being set as you expect.\n\n```js\nnew DotenvFlow({\n  debug: true\n})\n```\n\n#### `silent`\n###### Type: `boolean`\n###### Default: `false`\n\nSet to `true` to suppress all kinds of errors and warnings.\n\n```js\nnew DotenvFlow({\n  silent: true\n})\n```\n\n## Project Example\n\nLet's suppose you have the following files in your project:\n\n```sh\n# .env\n\nDATABASE_HOST=127.0.0.1\nDATABASE_PORT=27017\nDATABASE_USER=default\nDATABASE_PASS=\nDATABASE_NAME=my_app\n\nSERVICE_URL=/api/v1\n```\n\n```sh\n# .env.development\n\nDATABASE_NAME=my_app_dev\n\nSERVICE_URL=http://localhost:3000/api/v1\n```\n\n```sh\n# .env.test\n\nSERVICE_URL=https://localhost:3001/api/v1\n```\n\n```sh\n# .env.production\n\nDATABASE_HOST=10.0.0.32\nDATABASE_PORT=27017\nDATABASE_USER=devops\nDATABASE_PASS=1qa2ws3ed4rf5tg6yh\nDATABASE_NAME=application_storage\n\nSERVICE_URL=https://myapp.com/api/v1\n```\n\n```js\n// file1.js\n\nif (process.env.NODE_ENV !== 'production') {\n  console.log(`Running in the \"${process.env.NODE_ENV}\" mode.`);\n}\nelse {\n  console.log('We are in production!');\n}\n\nconst USERS_ENDPOINT = process.env.SERVICE_URL + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nThus, when you build your app with `NODE_ENV=development`, the resulting bundle will include something like this:\n\n```js\n// file1.js\n\nif (true) {\n  console.log(\"Running in the \".concat(\"development\", \" mode.\"));\n} else {}\n\nconst USERS_ENDPOINT = \"http://localhost:3000/api/v1\" + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nOr if you build your app with `NODE_ENV=production`, then the output will look like:\n\n```js\n// file1.js\n\nif (false) {} else {\n  console.log('We are in production!');\n}\n\nconst USERS_ENDPOINT = \"https://myapp.com/api/v1\" + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nAnd after all the optimization procedures it will be compressed till:\n\n```js\nconsole.log(\"We are in production!\");\nconsole.log(\"USERS_ENDPOINT:\", \"https://myapp.com/api/v1/users\");\n```\n\nMake a note that values of `DATABASE_(HOST/PORT/USER/PASSWORD/NAME)` will **not** be present in the resulting bundle while they are not referenced anywhere in the code.\n\n\n## Additional information\n\nPlease refer the [dotenv-flow documentation](https://github.com/kerimdzhanov/dotenv-flow#readme) to learn more about the `.env*` files concept.\n\nHere is the list of related sections:\n\n * [`NODE_ENV`-specific `.env*` files](https://github.com/kerimdzhanov/dotenv-flow#node_env-specific-env-files)\n * [Files under version control](https://github.com/kerimdzhanov/dotenv-flow#files-under-version-control)\n * [Variables overwriting/priority](https://github.com/kerimdzhanov/dotenv-flow#variables-overwritingpriority)\n\n\n## Contributing\n\nFeel free to dive in! [Open an issue](https://github.com/kerimdzhanov/dotenv-flow-webpack/issues/new) or submit PRs.\n\n\n## Running tests\n\nUsing NPM:\n\n```sh\n$ npm test\n```\n\nUsing Yarn:\n\n```sh\n$ yarn test\n```\n\n\n## License\n\nLicensed under [MIT](LICENSE) © 2019-2023 Dan Kerimdzhanov\n","readmeFilename":"README.md","_id":"dotenv-flow-webpack@2.0.0-rc.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-eUc4FQqkdzXWnOPiIjyPTmFW+T+p2Zx8zpayIIQ6fM6+e62WJgJoU/cxYGevqKyv41bOsDAzxFE8kuOpe2nrVw==","shasum":"356b524b1e7a25547aabb314b3d1247940ff40e1","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-2.0.0-rc.1.tgz","fileCount":4,"unpackedSize":16365,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3olZyAQWg3ofWjYN+qaV+WQgHKNlxZQ5DJa+K6eP3LAIgclDREGIEhWAs9uJAKKoxqOXHdwg1QT8q9SPym5sUlIw="}]},"_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"directories":{},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_2.0.0-rc.1_1695852940245_0.18302693531310976"},"_hasShrinkwrap":false},"2.0.0-rc.2":{"name":"dotenv-flow-webpack","version":"2.0.0-rc.2","description":"A webpack plugin that allows you to securely use environment variables within your javascript web application, loading them using dotenv-flow's `.env*` files loading strategy.","keywords":["dotenv-flow","webpack","node_env","process.env","development","test","production","local","env","environment","variables"],"homepage":"https://github.com/kerimdzhanov/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/kerimdzhanov/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/kerimdzhanov/dotenv-flow-webpack/issues"},"main":"lib/dotenv-flow-webpack.js","peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4 || ^5"},"dependencies":{"dotenv-flow":"^4.0.0-rc.3"},"devDependencies":{"@types/sinon-chai":"^3.2.9","chai":"^4.3.8","conventional-changelog-cli":"^2.0.17","mocha":"^10.2.0","sinon":"^16.0.0","sinon-chai":"^3.7.0","webpack":"^5.88.2"},"engines":{"node":">= 12.0.0"},"scripts":{"test":"mocha -r mocha.conf.js test/*.spec.js","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"author":{"name":"Dan Kerimdzhanov"},"license":"MIT","readmeFilename":"README.md","readme":"# dotenv-flow-webpack\n\n<img src=\"https://raw.githubusercontent.com/kerimdzhanov/dotenv-flow-webpack/master/dotenv-flow-webpack@2x.png\" alt=\"dotenv-flow-webpack\" width=\"210\" height=\"230\" align=\"right\" />\n\nA Webpack plugin that allows you to securely use environment variables within your javascript web application, loading them using _[dotenv-flow](https://github.com/kerimdzhanov/dotenv-flow)'s_ `.env*` files loading strategy.\n\n> _dotenv-flow_ extends _[dotenv](https://github.com/motdotla/dotenv)_, adding support of `NODE_ENV`-specific `.env*` files _like `.env.development`, `.env.test`, `.env.stage`, and `.env.production`,_ and the appropriate `.env*.local` overrides allowing your app to have multiple environments with selectively-adjusted environment variable setups and load them dynamically depending on the current NODE_ENV.\n\n🌱 Inspired by _[dotenv-webpack](https://github.com/mrsteele/dotenv-webpack)_, _[CreateReactApp](https://create-react-app.dev/)'s **storing configs in `.env*` files** approach_,\nthe _Twelve-Factor App methodology_ in general, and _its **[store config in the environment](https://12factor.net/config)** section_ in particular.\n\n[![Build Status](https://github.com/kerimdzhanov/dotenv-flow-webpack/actions/workflows/ci.yml/badge.svg?branch=master&event=push)](https://github.com/kerimdzhanov/dotenv-flow-webpack/actions/workflows/ci.yml)\n[![npm version](https://badge.fury.io/js/dotenv-flow-webpack.svg)](https://badge.fury.io/js/dotenv-flow-webpack)\n[![Known Vulnerabilities](https://snyk.io/test/github/kerimdzhanov/dotenv-flow-webpack/badge.svg?targetFile=package.json)](https://snyk.io/test/github/kerimdzhanov/dotenv-flow-webpack?targetFile=package.json)\n\n\n## Key Features\n\n- **Environment-based configuration**: You can have different `.env*` files for various environments like _development_, _test_, and _production_.\n- **Variable overriding** _(or environment-specific cascade)_: Allows you to selectively override the default and environment-specific variables with the appropriate `.env*.local` overrides.\n- **Secure**: Injects variables by replacing the `process.env.<YOUR_VAR>` entries with the actual values from your `.env*` files during the build process, thus _**exposing only those variables that are explicitly used in your code**_.\n- **[dotenv-flow](https://github.com/kerimdzhanov/dotenv-flow) as a Webpack plugin**: directly integrates dotenv-flow with all its flexibility options to your build process making it easier to use environment variables without extra build scripts.\n\n\n## Installation\n\nUsing NPM:\n\n```sh\n$ npm install dotenv-flow-webpack --save-dev\n```\n\nUsing Yarn:\n\n```sh\n$ yarn add dotenv-flow-webpack --dev\n```\n\n\n## Basic usage\n\nHere's how to include the **dotenv-flow-webpack** to your `webpack.config.js`:\n\n```js\n// webpack.config.js\n\nconst DotenvFlow = require('dotenv-flow-webpack');\n\nmodule.exports = {\n  // ...other webpack configurations\n  plugins: [\n    new DotenvFlow({\n      // configuration options\n    })\n  ],\n  // ...other webpack plugins\n};\n```\n\n## Configuration options\n\n#### `node_env`\n###### Type: `string`\n###### Default: `process.env.NODE_ENV || options.default_node_env`\n\nBy default, the plugin refers the `NODE_ENV` environment variable to detect the environment to use.\nWith the `node_env` option you can force the module to use your custom environment value independent of `process.env.NODE_ENV`.\n\n```js\nnew DotenvFlow({\n  node_env: 'production'\n})\n```\n\n#### `default_node_env`\n###### Type: `string`\n###### Default: _undefined_\n\nIf the `NODE_ENV` environment variable is not set, the module doesn't load/parse any `NODE_ENV`-specific files at all.\nTherefore, you may want to use `\"development\"` as the default environment.\n\n```js\nnew DotenvFlow({\n  default_node_env: 'development'\n})\n```\n\n#### `path`\n###### Type: `string`\n###### Default: `process.cwd()` _(current working directory)_\n\nWith the `path` initialization option you can specify a path to `.env*` files directory.\n\n```js\nnew DotenvFlow({\n  path: './config'\n})\n```\n\nIf the option is not provided, the current working directory is used.\n\n#### `pattern`\n###### Type: `string`\n###### Default: `'.env[.node_env][.local]'`\n\nAllows you to change the default `.env*` files' naming convention\nif you want to have a specific file naming structure for maintaining\nyour environment variables' files.\n\n**Default Value**\n\nThe default value `\".env[.node_env][.local]\"` makes *dotenv-flow-webpack*\nlook up and load the following files in order:\n\n1. `.env`\n2. `.env.local`\n3. `.env.${NODE_ENV}`\n4. `.env.${NODE_ENV}.local`\n\nFor example, when the `proess.env.NODE_ENV` (or `options.node_env`) is set to `\"development\"`,\n*dotenv-flow-webpack* will be looking for and parsing (if found) the following files:\n\n1. `.env`\n2. `.env.local`\n3. `.env.development`\n4. `.env.development.local`\n\n**Custom Pattern**\n\nHere is a couple of examples of customizing the `.env*` files naming convention:\n\nFor example, if you set the pattern to `\".env/[local/]env[.node_env]\"`,\n*dotenv-flow-webpack* will look for these files instead:\n\n1. `.env/env`\n2. `.env/local/env`\n3. `.env/env.development`\n4. `.env/local/env.development`\n\n… or if you set the pattern to `\".env/[.node_env/].env[.node_env][.local]\"`,\nthe plugin will try to find and parse:\n\n1. `.env/.env`\n2. `.env/.env.local`\n3. `.env/development/.env.development`\n4. `.env/development/.env.development.local`\n\n› Please refer to [`dotenv-flow.listFiles(options)`](https://github.com/kerimdzhanov/dotenv-flow#listfilesoptions--string) to learn more.\n\n#### `encoding`\n###### Type: `string`\n###### Default: `'utf8'`\n\nYou can specify the encoding of your files containing environment variables.\n\n```js\nnew DotenvFlow({\n  encoding: 'base64'\n})\n```\n\n#### `system_vars`\n###### Type: `boolean`\n###### Default: `false`\n\nIf `true`, all the predefined `process.env.*` variables will also be loaded.\nIn accordance to the dotenv-flow's specification, all the predefined system environment variables will have higher priority over the `.env*` files defined.\n\n```js\nnew DotenvFlow({\n  system_vars: true\n})\n```\n\n#### `options.debug`\n###### Type: `boolean`\n###### Default: `false`\n\nEnables detailed logging to debug why certain variables are not being set as you expect.\n\n```js\nnew DotenvFlow({\n  debug: true\n})\n```\n\n#### `silent`\n###### Type: `boolean`\n###### Default: `false`\n\nSet to `true` to suppress all kinds of errors and warnings.\n\n```js\nnew DotenvFlow({\n  silent: true\n})\n```\n\n## Project Example\n\nLet's suppose you have the following files in your project:\n\n```sh\n# .env\n\nDATABASE_HOST=127.0.0.1\nDATABASE_PORT=27017\nDATABASE_USER=default\nDATABASE_PASS=\nDATABASE_NAME=my_app\n\nSERVICE_URL=/api/v1\n```\n\n```sh\n# .env.development\n\nDATABASE_NAME=my_app_dev\n\nSERVICE_URL=http://localhost:3000/api/v1\n```\n\n```sh\n# .env.test\n\nSERVICE_URL=https://localhost:3001/api/v1\n```\n\n```sh\n# .env.production\n\nDATABASE_HOST=10.0.0.32\nDATABASE_PORT=27017\nDATABASE_USER=devops\nDATABASE_PASS=1qa2ws3ed4rf5tg6yh\nDATABASE_NAME=application_storage\n\nSERVICE_URL=https://myapp.com/api/v1\n```\n\n```js\n// file1.js\n\nif (process.env.NODE_ENV !== 'production') {\n  console.log(`Running in the \"${process.env.NODE_ENV}\" mode.`);\n}\nelse {\n  console.log('We are in production!');\n}\n\nconst USERS_ENDPOINT = process.env.SERVICE_URL + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nThus, when you build your app with `NODE_ENV=development`, the resulting bundle will include something like this:\n\n```js\n// file1.js\n\nif (true) {\n  console.log(\"Running in the \".concat(\"development\", \" mode.\"));\n} else {}\n\nconst USERS_ENDPOINT = \"http://localhost:3000/api/v1\" + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nOr if you build your app with `NODE_ENV=production`, then the output will look like:\n\n```js\n// file1.js\n\nif (false) {} else {\n  console.log('We are in production!');\n}\n\nconst USERS_ENDPOINT = \"https://myapp.com/api/v1\" + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nAnd after all the optimization procedures it will be compressed till:\n\n```js\nconsole.log(\"We are in production!\");\nconsole.log(\"USERS_ENDPOINT:\", \"https://myapp.com/api/v1/users\");\n```\n\nMake a note that values of `DATABASE_(HOST/PORT/USER/PASSWORD/NAME)` will **not** be present in the resulting bundle while they are not referenced anywhere in the code.\n\n\n## Additional information\n\nPlease refer the [dotenv-flow documentation](https://github.com/kerimdzhanov/dotenv-flow#readme) to learn more about the `.env*` files concept.\n\nHere is the list of related sections:\n\n * [`NODE_ENV`-specific `.env*` files](https://github.com/kerimdzhanov/dotenv-flow#node_env-specific-env-files)\n * [Files under version control](https://github.com/kerimdzhanov/dotenv-flow#files-under-version-control)\n * [Variables overwriting/priority](https://github.com/kerimdzhanov/dotenv-flow#variables-overwritingpriority)\n\n\n## Contributing\n\nFeel free to dive in! [Open an issue](https://github.com/kerimdzhanov/dotenv-flow-webpack/issues/new) or submit PRs.\n\n\n## Running tests\n\nUsing NPM:\n\n```sh\n$ npm test\n```\n\nUsing Yarn:\n\n```sh\n$ yarn test\n```\n\n\n## License\n\nLicensed under [MIT](LICENSE) © 2019-2023 Dan Kerimdzhanov\n","licenseText":"Copyright (c) 2019-2023 Dan Kerimdzhanov <kerimdzhanov@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"dotenv-flow-webpack@2.0.0-rc.2","dist":{"shasum":"f288ae9b7779c1afb80f53564f9e00c6377273ce","integrity":"sha512-tnEvHL1VFKPzN9FV6DL4heb+8ba6KwWYZCHuZedfb7OcvPJb6d+t54dLzF1bG+u8wL/CtOZKPUSBwONGtatw7w==","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-2.0.0-rc.2.tgz","fileCount":7,"unpackedSize":20512,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFEoRhULSbsoPqyJXa5u2VM2T0E6ek1FsVGuTEuNj58vAiB5uxnIIFa/x1fY4NiwVYIgGFPxR3x1qbQKg67wzhA9Lg=="}]},"_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"directories":{},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_2.0.0-rc.2_1695857784289_0.6152990973832484"},"_hasShrinkwrap":false},"2.0.0":{"name":"dotenv-flow-webpack","version":"2.0.0","description":"A webpack plugin that allows you to securely use environment variables within your javascript web application, loading them using dotenv-flow's `.env*` files loading strategy.","keywords":["dotenv-flow","webpack","node_env","process.env","development","test","production","local","env","environment","variables"],"homepage":"https://github.com/kerimdzhanov/dotenv-flow-webpack#readme","repository":{"type":"git","url":"git+https://github.com/kerimdzhanov/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/kerimdzhanov/dotenv-flow-webpack/issues"},"main":"lib/dotenv-flow-webpack.js","peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4 || ^5"},"dependencies":{"dotenv-flow":"^4.0.0-rc.3"},"devDependencies":{"@types/sinon-chai":"^3.2.9","chai":"^4.3.8","conventional-changelog-cli":"^2.0.17","mocha":"^10.2.0","sinon":"^16.0.0","sinon-chai":"^3.7.0","webpack":"^5.88.2"},"engines":{"node":">= 12.0.0"},"scripts":{"test":"mocha -r mocha.conf.js test/*.spec.js","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"author":{"name":"Dan Kerimdzhanov"},"license":"MIT","licenseText":"Copyright (c) 2019-2023 Dan Kerimdzhanov <kerimdzhanov@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"dotenv-flow-webpack@2.0.0","dist":{"shasum":"fbbe60088824fed8ce09b4a32e69f3308b22b659","integrity":"sha512-SLzisMB0pzrYiTOv/qb2lLjBdmeZYXHajleNJnRX1/93QaKNqgiWzT238KvxfRFbiCna5nta48KzetSKfH1jQQ==","tarball":"https://registry.npmjs.org/dotenv-flow-webpack/-/dotenv-flow-webpack-2.0.0.tgz","fileCount":7,"unpackedSize":22743,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjuKpGRoSPXgvZGI1ymXOcogjdtQMZat4HZRpCTl4PtAiEA+wGvxfJji9LJBcgQhYBT4FctkOkjhO+cglFeyfe5KCE="}]},"_npmUser":{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"},"directories":{},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotenv-flow-webpack_2.0.0_1696018617445_0.6550692114216872"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-10T03:28:02.212Z","0.1.0-beta.1":"2018-08-10T03:28:02.354Z","modified":"2023-09-29T20:20:01.756Z","0.1.0-beta.2":"2018-08-10T12:03:14.637Z","0.1.0-beta.3":"2018-09-02T13:32:22.979Z","1.0.0-rc.1":"2019-07-04T00:30:15.951Z","1.0.0-rc.2":"2019-07-04T23:52:42.177Z","1.0.0":"2019-07-06T00:03:03.581Z","1.1.0":"2020-06-27T15:28:53.756Z","1.2.0-rc.1":"2023-09-16T20:54:37.839Z","1.2.0":"2023-09-22T01:19:03.979Z","2.0.0-rc.1":"2023-09-27T22:15:40.463Z","2.0.0-rc.2":"2023-09-27T23:36:24.440Z","2.0.0":"2023-09-29T20:16:57.665Z"},"maintainers":[{"name":"kerimdzhanov","email":"kerimdzhanov@gmail.com"}],"description":"A webpack plugin that allows you to securely use environment variables within your javascript web application, loading them using dotenv-flow's `.env*` files loading strategy.","homepage":"https://github.com/kerimdzhanov/dotenv-flow-webpack#readme","keywords":["dotenv-flow","webpack","node_env","process.env","development","test","production","local","env","environment","variables"],"repository":{"type":"git","url":"git+https://github.com/kerimdzhanov/dotenv-flow-webpack.git"},"bugs":{"url":"https://github.com/kerimdzhanov/dotenv-flow-webpack/issues"},"license":"MIT","readme":"# dotenv-flow-webpack\n\n<img src=\"https://raw.githubusercontent.com/kerimdzhanov/dotenv-flow-webpack/master/dotenv-flow-webpack@2x.png\" alt=\"dotenv-flow-webpack\" width=\"210\" height=\"230\" align=\"right\" />\n\nA Webpack plugin that allows you to securely use environment variables within your javascript web application, loading them using _[dotenv-flow](https://github.com/kerimdzhanov/dotenv-flow)'s_ `.env*` files loading strategy.\n\n> _dotenv-flow_ extends _[dotenv](https://github.com/motdotla/dotenv)_, adding support of `NODE_ENV`-specific `.env*` files _like `.env.development`, `.env.test`, `.env.stage`, and `.env.production`,_ and the appropriate `.env*.local` overrides allowing your app to have multiple environments with selectively-adjusted environment variable setups and load them dynamically depending on the current NODE_ENV.\n\n🌱 Inspired by _[dotenv-webpack](https://github.com/mrsteele/dotenv-webpack)_, _[CreateReactApp](https://create-react-app.dev/)'s **storing configs in `.env*` files** approach_,\nthe _Twelve-Factor App methodology_ in general, and _its **[store config in the environment](https://12factor.net/config)** section_ in particular.\n\n[![Build Status](https://github.com/kerimdzhanov/dotenv-flow-webpack/actions/workflows/ci.yml/badge.svg?branch=master&event=push)](https://github.com/kerimdzhanov/dotenv-flow-webpack/actions/workflows/ci.yml)\n[![npm version](https://badge.fury.io/js/dotenv-flow-webpack.svg)](https://badge.fury.io/js/dotenv-flow-webpack)\n[![Known Vulnerabilities](https://snyk.io/test/github/kerimdzhanov/dotenv-flow-webpack/badge.svg?targetFile=package.json)](https://snyk.io/test/github/kerimdzhanov/dotenv-flow-webpack?targetFile=package.json)\n\n\n## Key Features\n\n- **Environment-based configuration**: You can have different `.env*` files for various environments like _development_, _test_, and _production_.\n- **Variable overriding** _(or environment-specific cascade)_: Allows you to selectively override the default and environment-specific variables with the appropriate `.env*.local` overrides.\n- **Secure**: Injects variables by replacing the `process.env.<YOUR_VAR>` entries with the actual values from your `.env*` files during the build process, thus _**exposing only those variables that are explicitly used in your code**_.\n- **[dotenv-flow](https://github.com/kerimdzhanov/dotenv-flow) as a Webpack plugin**: directly integrates dotenv-flow with all its flexibility options to your build process making it easier to use environment variables without extra build scripts.\n\n\n## Installation\n\nUsing NPM:\n\n```sh\n$ npm install dotenv-flow-webpack --save-dev\n```\n\nUsing Yarn:\n\n```sh\n$ yarn add dotenv-flow-webpack --dev\n```\n\n\n## Basic usage\n\nHere's how to include the **dotenv-flow-webpack** to your `webpack.config.js`:\n\n```js\n// webpack.config.js\n\nconst DotenvFlow = require('dotenv-flow-webpack');\n\nmodule.exports = {\n  // ...other webpack configurations\n  plugins: [\n    new DotenvFlow({\n      // configuration options\n    })\n  ],\n  // ...other webpack plugins\n};\n```\n\n## Configuration options\n\n#### `node_env`\n###### Type: `string`\n###### Default: `process.env.NODE_ENV || options.default_node_env`\n\nBy default, the plugin refers the `NODE_ENV` environment variable to detect the environment to use.\nWith the `node_env` option you can force the module to use your custom environment value independent of `process.env.NODE_ENV`.\n\n```js\nnew DotenvFlow({\n  node_env: 'production'\n})\n```\n\n#### `default_node_env`\n###### Type: `string`\n###### Default: _undefined_\n\nIf the `NODE_ENV` environment variable is not set, the module doesn't load/parse any `NODE_ENV`-specific files at all.\nTherefore, you may want to use `\"development\"` as the default environment.\n\n```js\nnew DotenvFlow({\n  default_node_env: 'development'\n})\n```\n\n#### `path`\n###### Type: `string`\n###### Default: `process.cwd()` _(current working directory)_\n\nWith the `path` initialization option you can specify a path to `.env*` files directory.\n\n```js\nnew DotenvFlow({\n  path: './config'\n})\n```\n\nIf the option is not provided, the current working directory is used.\n\n#### `pattern`\n###### Type: `string`\n###### Default: `'.env[.node_env][.local]'`\n\nAllows you to change the default `.env*` files' naming convention\nif you want to have a specific file naming structure for maintaining\nyour environment variables' files.\n\n**Default Value**\n\nThe default value `\".env[.node_env][.local]\"` makes *dotenv-flow-webpack*\nlook up and load the following files in order:\n\n1. `.env`\n2. `.env.local`\n3. `.env.${NODE_ENV}`\n4. `.env.${NODE_ENV}.local`\n\nFor example, when the `proess.env.NODE_ENV` (or `options.node_env`) is set to `\"development\"`,\n*dotenv-flow-webpack* will be looking for and parsing (if found) the following files:\n\n1. `.env`\n2. `.env.local`\n3. `.env.development`\n4. `.env.development.local`\n\n**Custom Pattern**\n\nHere is a couple of examples of customizing the `.env*` files naming convention:\n\nFor example, if you set the pattern to `\".env/[local/]env[.node_env]\"`,\n*dotenv-flow-webpack* will look for these files instead:\n\n1. `.env/env`\n2. `.env/local/env`\n3. `.env/env.development`\n4. `.env/local/env.development`\n\n… or if you set the pattern to `\".env/[.node_env/].env[.node_env][.local]\"`,\nthe plugin will try to find and parse:\n\n1. `.env/.env`\n2. `.env/.env.local`\n3. `.env/development/.env.development`\n4. `.env/development/.env.development.local`\n\n› Please refer to [`dotenv-flow.listFiles(options)`](https://github.com/kerimdzhanov/dotenv-flow#listfilesoptions--string) to learn more.\n\n#### `encoding`\n###### Type: `string`\n###### Default: `'utf8'`\n\nYou can specify the encoding of your files containing environment variables.\n\n```js\nnew DotenvFlow({\n  encoding: 'base64'\n})\n```\n\n#### `system_vars`\n###### Type: `boolean`\n###### Default: `false`\n\nIf `true`, all the predefined `process.env.*` variables will also be loaded.\nIn accordance to the dotenv-flow's specification, all the predefined system environment variables will have higher priority over the `.env*` files defined.\n\n```js\nnew DotenvFlow({\n  system_vars: true\n})\n```\n\n#### `options.debug`\n###### Type: `boolean`\n###### Default: `false`\n\nEnables detailed logging to debug why certain variables are not being set as you expect.\n\n```js\nnew DotenvFlow({\n  debug: true\n})\n```\n\n#### `silent`\n###### Type: `boolean`\n###### Default: `false`\n\nSet to `true` to suppress all kinds of errors and warnings.\n\n```js\nnew DotenvFlow({\n  silent: true\n})\n```\n\n## Project Example\n\nLet's suppose you have the following files in your project:\n\n```sh\n# .env\n\nDATABASE_HOST=127.0.0.1\nDATABASE_PORT=27017\nDATABASE_USER=default\nDATABASE_PASS=\nDATABASE_NAME=my_app\n\nSERVICE_URL=/api/v1\n```\n\n```sh\n# .env.development\n\nDATABASE_NAME=my_app_dev\n\nSERVICE_URL=http://localhost:3000/api/v1\n```\n\n```sh\n# .env.test\n\nSERVICE_URL=https://localhost:3001/api/v1\n```\n\n```sh\n# .env.production\n\nDATABASE_HOST=10.0.0.32\nDATABASE_PORT=27017\nDATABASE_USER=devops\nDATABASE_PASS=1qa2ws3ed4rf5tg6yh\nDATABASE_NAME=application_storage\n\nSERVICE_URL=https://myapp.com/api/v1\n```\n\n```js\n// file1.js\n\nif (process.env.NODE_ENV !== 'production') {\n  console.log(`Running in the \"${process.env.NODE_ENV}\" mode.`);\n}\nelse {\n  console.log('We are in production!');\n}\n\nconst USERS_ENDPOINT = process.env.SERVICE_URL + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nThus, when you build your app with `NODE_ENV=development`, the resulting bundle will include something like this:\n\n```js\n// file1.js\n\nif (true) {\n  console.log(\"Running in the \".concat(\"development\", \" mode.\"));\n} else {}\n\nconst USERS_ENDPOINT = \"http://localhost:3000/api/v1\" + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nOr if you build your app with `NODE_ENV=production`, then the output will look like:\n\n```js\n// file1.js\n\nif (false) {} else {\n  console.log('We are in production!');\n}\n\nconst USERS_ENDPOINT = \"https://myapp.com/api/v1\" + '/users';\n\nconsole.log('USERS_ENDPOINT:', USERS_ENDPOINT);\n```\n\nAnd after all the optimization procedures it will be compressed till:\n\n```js\nconsole.log(\"We are in production!\");\nconsole.log(\"USERS_ENDPOINT:\", \"https://myapp.com/api/v1/users\");\n```\n\nMake a note that values of `DATABASE_(HOST/PORT/USER/PASSWORD/NAME)` will **not** be present in the resulting bundle while they are not referenced anywhere in the code.\n\n\n## Additional information\n\nPlease refer the [dotenv-flow documentation](https://github.com/kerimdzhanov/dotenv-flow#readme) to learn more about the `.env*` files concept.\n\nHere is the list of related sections:\n\n * [`NODE_ENV`-specific `.env*` files](https://github.com/kerimdzhanov/dotenv-flow#node_env-specific-env-files)\n * [Files under version control](https://github.com/kerimdzhanov/dotenv-flow#files-under-version-control)\n * [Variables overwriting/priority](https://github.com/kerimdzhanov/dotenv-flow#variables-overwritingpriority)\n\n\n## Contributing\n\nFeel free to dive in! [Open an issue](https://github.com/kerimdzhanov/dotenv-flow-webpack/issues/new) or submit PRs.\n\n\n## Running tests\n\nUsing NPM:\n\n```sh\n$ npm test\n```\n\nUsing Yarn:\n\n```sh\n$ yarn test\n```\n\n\n## License\n\nLicensed under [MIT](LICENSE) © 2019-2023 Dan Kerimdzhanov\n","readmeFilename":"README.md","author":{"name":"Dan Kerimdzhanov"}}