{"_id":"babel-plugin-dotenv-import","_rev":"17-93f5382f2972ed94ed65d91a6318b46c","name":"babel-plugin-dotenv-import","description":"Load environment variables using import statements.","dist-tags":{"latest":"3.0.1","beta":"2.0.0-beta.2"},"versions":{"1.0.0":{"name":"babel-plugin-dotenv-import","version":"1.0.0","description":"Load environment variables from .env file using import statement","repository":{"type":"git","url":"git+ssh://git@github.com/tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"nyc mocha"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^4.0.0"},"devDependencies":{"babel-core":"^6.14.0","babel-plugin-transform-es2015-modules-commonjs":"^6.14.0","babel-runtime":"^6.26.0","codecov":"^3.0.0","expect.js":"^0.3.1","mocha":"^4.0.1","nyc":"^11.2.1","xo":"^0.18.2"},"author":{"name":"Bertrand Marron"},"license":"MIT","nyc":{"reporter":["html","json","text"]},"xo":{"semicolon":false,"space":2,"overrides":[{"files":"test/test.js","env":"mocha"}]},"gitHead":"7dcc33c8a7382b45150ce8aa7bb229eaa70acee5","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import#readme","_id":"babel-plugin-dotenv-import@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"dist":{"integrity":"sha512-qM9VGhsxxwLZZx2TFbNtMHO8JrwlCvr2aw3Gm6Ncwyx2DmTDONE1crbn6YiqMmED6iRmbBDLX0E26Hsne72qng==","shasum":"b2c0fec48553ef92244cdae784fd7d2ef7863abb","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMbyMcjijsLde15udL5Uak02KWwPTXiaqblceneyrXsAiB0ke9U4GL9ADc4MjONgodL8Q5lr6BOIYO8kEPJfCRV4Q=="}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import-1.0.0.tgz_1508970965231_0.24533016583882272"},"directories":{}},"1.1.0":{"name":"babel-plugin-dotenv-import","version":"1.1.0","description":"Load environment variables from .env file using import statement","repository":{"type":"git","url":"git+ssh://git@github.com/tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"nyc mocha"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^4.0.0"},"devDependencies":{"babel-core":"^6.14.0","babel-plugin-transform-es2015-modules-commonjs":"^6.14.0","babel-runtime":"^6.26.0","codecov":"^3.0.0","expect.js":"^0.3.1","mocha":"^4.0.1","nyc":"^11.3.0","xo":"^0.18.2"},"author":{"name":"Bertrand Marron"},"license":"MIT","nyc":{"reporter":["html","json","text"]},"xo":{"semicolon":false,"space":2,"overrides":[{"files":"test/test.js","env":"mocha"}]},"gitHead":"193ca5fc866478545c0d74217b03a43680b4b049","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import#readme","_id":"babel-plugin-dotenv-import@1.1.0","_npmVersion":"5.4.2","_nodeVersion":"8.8.1","_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"dist":{"integrity":"sha512-gmBa4HXOHQWLPwVlCjl4xvLY1sXf34dqii3M5KkDZVGmqga+cJ/utb6AH5pjcJxo5IbDWsE6fAuOQ049mfyBow==","shasum":"d3e1ce0599032fdc7bdab45c537d83a3346230c9","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfPtuLt6aKEQs5e9CQ79lbhpTCEepUBLZIr/s/d4djmQIhAKFVHfFlvUKV3OaM52HtjrDh6H8tKpeXiKn4scqU6Iom"}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import-1.1.0.tgz_1509847170345_0.6326151269022375"},"directories":{}},"1.2.0":{"name":"babel-plugin-dotenv-import","version":"1.2.0","description":"Load environment variables from .env file using import statement","repository":{"type":"git","url":"git+ssh://git@github.com/tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"nyc mocha"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^4.0.0"},"devDependencies":{"babel-core":"^6.14.0","babel-plugin-transform-es2015-modules-commonjs":"^6.14.0","babel-runtime":"^6.26.0","codecov":"^3.0.0","expect.js":"^0.3.1","mocha":"^4.0.1","nyc":"^11.3.0","xo":"^0.18.2"},"author":{"name":"Bertrand Marron"},"license":"MIT","nyc":{"reporter":["html","json","text"]},"xo":{"semicolon":false,"space":2,"overrides":[{"files":"test/test.js","env":"mocha"}]},"gitHead":"3ba43219223bd0f9ebd77d5cf9be25cb54e1e48c","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import#readme","_id":"babel-plugin-dotenv-import@1.2.0","_npmVersion":"5.4.2","_nodeVersion":"8.8.1","_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"dist":{"integrity":"sha512-gW/kOUtDIIqbYZ93o5d7/nxE3l0ypyefga5t9F81+eQ46a5/S7mBfBwJY0MpCbcQCmsSgKebkcbOW4846IwZHw==","shasum":"394c2ca78d3a44183e5508499f4ed154c85dd8a5","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsXkVvLlh6H3eEXltoavfKAQd8nNCCmKGa1uJ/Cgi0fgIgHndZ1l7c5hKYJGP9k1upMH9ul2p+RfJtduMDN4ctsio="}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import-1.2.0.tgz_1509904711409_0.16022475133650005"},"directories":{}},"1.2.1":{"name":"babel-plugin-dotenv-import","version":"1.2.1","description":"Load environment variables using import statements.","repository":{"type":"git","url":"git+ssh://git@github.com/tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"nyc ava"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^4.0.0"},"devDependencies":{"ava":"^0.23.0","babel-core":"^6.14.0","babel-plugin-transform-es2015-modules-commonjs":"^6.14.0","babel-runtime":"^6.26.0","codecov":"^3.0.0","nyc":"^11.3.0","xo":"^0.18.2"},"author":{"name":"Bertrand Marron"},"license":"MIT","nyc":{"reporter":["html","json","text"]},"xo":{"semicolon":false,"space":2,"overrides":[{"files":"test/test.js","env":"mocha"}]},"gitHead":"02e34b6979f86db925fd7a34e292cc66ce6dc62f","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import#readme","_id":"babel-plugin-dotenv-import@1.2.1","_npmVersion":"5.4.2","_nodeVersion":"8.8.1","_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"dist":{"integrity":"sha512-+ElfY4XF6AK8JDdseJcYReSKkqxgyguPl0sVWs2+rIPaz2P/GOKIqRdSKkwkDwBqHiKWx5ndCZAiFHw2FEvllw==","shasum":"350dd7621244a0d2c054c76cdad10a91546d5f2c","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-1.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpJ75KEOZFpULV4SvVa9FYVDK/ZnZmCLpBavVtQAIYfwIgUjfjiAtYm8uHG35kHLjF8QzojhLmp6Ua6T+Q7aE8N8g="}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import-1.2.1.tgz_1509908765364_0.2682397491298616"},"directories":{}},"1.2.2":{"name":"babel-plugin-dotenv-import","version":"1.2.2","description":"Load environment variables using import statements.","repository":{"type":"git","url":"git+ssh://git@github.com/tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"nyc ava"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^4.0.0"},"devDependencies":{"ava":"^0.23.0","babel-core":"^6.14.0","babel-plugin-transform-es2015-modules-commonjs":"^6.14.0","babel-runtime":"^6.26.0","codecov":"^3.0.0","nyc":"^11.3.0","xo":"^0.18.2"},"author":{"name":"Bertrand Marron"},"license":"MIT","nyc":{"reporter":["html","json","text"]},"xo":{"semicolon":false,"space":2,"overrides":[{"files":"test/test.js","env":"mocha"}]},"gitHead":"c1981aaafdb90aafef8e736765a7cab830f286c8","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import#readme","_id":"babel-plugin-dotenv-import@1.2.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"dist":{"integrity":"sha512-8rFpWDIdr7JggQNVhklbzy7CagvbjH0D6f2E5ruOWpnN501mbCGTbnl643EJuOXAuXgnTYpOb6kK+vPlE7pJhQ==","shasum":"b1dac2bd7e89b873189e40985569608fed97f5e1","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-1.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8lnsjWpu8np6IuL+fQaS9cYmiqwRwyYCr4xiJZlUh5AIhAPU0UbMFNgNn4kHdQ1efw2dO/E+5IRRE0Els0MpSTHdP"}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import-1.2.2.tgz_1509912594860_0.3006017836742103"},"directories":{}},"1.3.0":{"name":"babel-plugin-dotenv-import","version":"1.3.0","description":"Load environment variables using import statements.","repository":{"type":"git","url":"git+ssh://git@github.com/tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"nyc ava"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^4.0.0"},"devDependencies":{"ava":"^0.23.0","babel-core":"^6.14.0","babel-runtime":"^6.26.0","codecov":"^3.0.0","nyc":"^11.3.0","xo":"^0.18.2"},"author":{"name":"Bertrand Marron"},"license":"MIT","nyc":{"reporter":["html","json","text"]},"xo":{"semicolon":false,"space":2},"gitHead":"7b50ba5d55f8bb0439a8d97c3b90f2cc3f3d3905","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import#readme","_id":"babel-plugin-dotenv-import@1.3.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"dist":{"integrity":"sha512-lr8rT2Io2Q5AOaYKqXJlafoLUs1WMRZQJPbNdoU6Zlpj+arC4XMcr8jb79O6CFo5jWRrysGX3rc0c7+D0rU3GA==","shasum":"db5ef776794a520379fb66d49d640478b78b5efa","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-1.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLOESYguiMnn4Y7htQqPs6GYjrjQFbg3DdGAgzmLYssQIhALTLNaX2eORQcI5Oo7oNJ7PhaaNTWkzoPWGuWY18evtY"}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import-1.3.0.tgz_1509968213149_0.9478868206497282"},"directories":{}},"1.3.1":{"name":"babel-plugin-dotenv-import","version":"1.3.1","description":"Load environment variables using import statements.","repository":{"type":"git","url":"git+ssh://git@github.com/tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"nyc ava"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^4.0.0"},"devDependencies":{"ava":"^0.24.0","babel-core":"^6.14.0","codecov":"^3.0.0","nyc":"^11.4.1","xo":"^0.18.2"},"author":{"name":"Bertrand Marron"},"license":"MIT","nyc":{"reporter":["html","json","text"]},"xo":{"semicolon":false,"space":2},"gitHead":"56f9f98a144285099ee1ae26f01472d8d429957f","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import#readme","_id":"babel-plugin-dotenv-import@1.3.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"dist":{"integrity":"sha512-NNiDHTWAhAJUS6zIHYnJm/X7smlwGdQFgDj1B5Xhd79GFWbO5nwXXLF87nMGRvXaoInxcXFDJOu0TLj/r9tJFA==","shasum":"54e515d47aed18d15717d22e82b09552d2da0df7","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-1.3.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF6eijtFWM43AOSsc7PDJ2UD2T8t/7/kTaAewRClXi+RAiEAoKCerkI5pFxWpIF17VHKW1k2Z3ZDPLhwEgLYp/ad0ro="}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import-1.3.1.tgz_1514543389086_0.9835538771003485"},"directories":{}},"2.0.0-beta.1":{"name":"babel-plugin-dotenv-import","version":"2.0.0-beta.1","description":"Load environment variables using import statements.","repository":{"type":"git","url":"git@github.com:tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"nyc ava"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^5.0.1"},"devDependencies":{"@babel/core":"^7.0.0-beta.47","ava":"^0.25.0","codecov":"^3.0.0","nyc":"^11.6.0","xo":"^0.21.0"},"author":{"name":"Bertrand Marron"},"license":"MIT","nyc":{"reporter":["html","json","text"]},"xo":{"semicolon":false,"space":2},"readmeFilename":"README.md","readme":"# babel-plugin-dotenv-import [![CircleCI](https://circleci.com/gh/tusbar/babel-plugin-dotenv-import.svg?style=svg)](https://circleci.com/gh/tusbar/babel-plugin-dotenv-import)\n\n[![npm version](https://img.shields.io/npm/v/babel-plugin-dotenv-import.svg)](https://www.npmjs.com/package/babel-plugin-dotenv-import)\n[![codecov](https://codecov.io/gh/tusbar/babel-plugin-dotenv-import/branch/master/graph/badge.svg)](https://codecov.io/gh/tusbar/babel-plugin-dotenv-import)\n[![dependencies Status](https://david-dm.org/tusbar/babel-plugin-dotenv-import/status.svg)](https://david-dm.org/tusbar/babel-plugin-dotenv-import)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n\nLoad environment variables using `import` statements.\n\n## Installation\n\n```sh\n$ npm install babel-plugin-dotenv-import\n```\n\n## Usage\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"moduleName\": \"@env\",\n      \"path\": \".env\",\n      \"blacklist\": null,\n      \"whitelist\": null,\n      \"safe\": false,\n      \"allowUndefined\": false\n    }]\n  ]\n}\n```\n\n**.env**\n\n```dosini\nAPI_URL=https://api.example.org\nAPI_TOKEN=\n```\n\nIn **users.js**\n\n```js\nimport {API_URL, API_TOKEN} from \"@env\"\n\nfetch(`${API_URL}/users`, {\n  headers: {\n    'Authorization': `Bearer ${API_TOKEN}`\n  }\n})\n```\n\n## White and black lists\n\nIt is possible to limit the scope of env variables that will be imported by specifying a `whitelist` and/or a `blacklist` as an array of strings.\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"blacklist\": [\n        \"GITHUB_TOKEN\"\n      ]\n    }]\n  ]\n}\n```\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"whitelist\": [\n        \"API_URL\",\n        \"API_TOKEN\"\n      ]\n    }]\n  ]\n}\n```\n\n## Safe mode\n\nEnable safe mode to only allow environment variables defined in the `.env` file. This will completely ignore everything that is already defined in the environment.\n\nThe `.env` file has to exist.\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"safe\": true\n    }]\n  ]\n}\n```\n\n## Allow undefined\n\nAllow importing undefined variables, their value will be `undefined`.\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"allowUndefined\": true\n    }]\n  ]\n}\n```\n\n```js\nimport {UNDEFINED_VAR} from '@env'\n\nconsole.log(UNDEFINED_VAR === undefined) // true\n```\n\nWhen `false` (default behavior), an error will be thrown.\n\n## Caveats\n\nWhen using with [`babel-loader`](https://github.com/babel/babel-loader) with caching enabled you will run into issues where environment changes won’t be picked up.\nThis is due to the fact that `babel-loader` computes a `cacheIdentifier` that does not take your environment into account.\n\nYou can easily clear the cache:\n\n```shell\nrm -rf node_modules/.cache/babel-loader/*\n```\n\nOr you can override the default `cacheIdentifier` to include some of your environment variables.\n\n## Credits\n\nBased on [David Chang](https://github.com/zetachang)’s works on [babel-plugin-dotenv](https://github.com/zetachang/react-native-dotenv/tree/master/babel-plugin-dotenv).\n\n## Miscellaneous\n\n```\n    ╚⊙ ⊙╝\n  ╚═(███)═╝\n ╚═(███)═╝\n╚═(███)═╝\n ╚═(███)═╝\n  ╚═(███)═╝\n   ╚═(███)═╝\n```\n","licenseText":"MIT License\n\nCopyright (c) 2017 Bertrand Marron\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"babel-plugin-dotenv-import@2.0.0-beta.1","dist":{"shasum":"032edb32ea52f8bf85f24489edd145b65222023b","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-2.0.0-beta.1.tgz","fileCount":64,"unpackedSize":15107,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbAXcVCRA9TVsSAnZWagAAN8YP/ivH+Ux8dMMiuH54iFNL\nsnpOOm9Sel78v+eLjjNqzqN9GslWRuTBMe1dgoQfNkW3Cl8Cta7iv/kzoG/2\nZI783rAV9jAF3tehR6HQ56fmRT3Qi0fc7h0LKwtT20y0WPUkTgiJjwwwXF1z\nuC85HZdmpe4WTE+hFBGzxXE7EJW9cxZIQV3xtjyjN0aWmvsjRIOT/60y9gIb\nIjqKKTVlRiSJq/xA3lCmSe31JP10ngty29lsF8u94eB5FAeMiIZQRjaguuvl\nH/HDk17s0BudydO0eF7GGXc+vK6SrpfnGAS11HtQzdtamyXGrXR58TWOZkog\nD55ehtHHTAYUsT4k5d/0m+iNwf6FCgAp896PbisyAdVvsCRm+n6aGMClDBUL\nxNmrMcCKED9xwNwR9SWKL3ePWLM8BfcOIjPEWgPIbvF9Pt0EPNWxEytzLxVk\nydoWM/Csg0Y//HZ+KDTNySjNJsdym+W54rabH9tIeAGYdM3nmf2GevtHIk4b\nbPvWssjuLs3z+4oVcybNjMWOZc4KUx/zRZx2zJZllnMGlEln0yoFJm6U/Cy+\nlarWJVVKq8syvbFAeADf1TKS7Xgcssshy3YfBxUyN+aHZCNPS92xpnXaSKAx\nZuKgQacNdPigv6zcCSHeEkPX7K6wBw0hgQbT3qwdhxbtdHP/0+7ysgGuYdzO\ngVwR\r\n=cvvu\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-kkwYyE3ZzbgelWwIXWg5+MKk8a36DUKKyIpTqE5ogxUfSA4uAtoYPv4zL1cqjVzpWAYeu/0NcLQq6TP+VhcIZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ8Uw58Xts/fJlmtmocqONutW34AEbRUc495Nc0NMejwIgW7uGElGPfV8GnYw7lXx8S2LbHfDuu3FApddX/QIoKHg="}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import_2.0.0-beta.1_1526822676555_0.3350676711443521"},"_hasShrinkwrap":false},"2.0.0-beta.2":{"name":"babel-plugin-dotenv-import","version":"2.0.0-beta.2","description":"Load environment variables using import statements.","repository":{"type":"git","url":"git@github.com:tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"nyc ava"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^6.0.0"},"devDependencies":{"@babel/core":"^7.0.0-beta.51","ava":"^0.25.0","codecov":"^3.0.0","nyc":"^12.0.2","xo":"^0.21.0"},"author":{"name":"Bertrand Marron"},"license":"MIT","nyc":{"reporter":["html","json","text"]},"xo":{"semicolon":false,"space":2},"readmeFilename":"README.md","readme":"# babel-plugin-dotenv-import [![CircleCI](https://circleci.com/gh/tusbar/babel-plugin-dotenv-import.svg?style=svg)](https://circleci.com/gh/tusbar/babel-plugin-dotenv-import)\n\n[![npm version](https://img.shields.io/npm/v/babel-plugin-dotenv-import.svg)](https://www.npmjs.com/package/babel-plugin-dotenv-import)\n[![codecov](https://codecov.io/gh/tusbar/babel-plugin-dotenv-import/branch/master/graph/badge.svg)](https://codecov.io/gh/tusbar/babel-plugin-dotenv-import)\n[![dependencies Status](https://david-dm.org/tusbar/babel-plugin-dotenv-import/status.svg)](https://david-dm.org/tusbar/babel-plugin-dotenv-import)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n\nLoad environment variables using `import` statements.\n\n## Installation\n\n```sh\n$ npm install babel-plugin-dotenv-import\n```\n\n## Usage\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"moduleName\": \"@env\",\n      \"path\": \".env\",\n      \"blacklist\": null,\n      \"whitelist\": null,\n      \"safe\": false,\n      \"allowUndefined\": false\n    }]\n  ]\n}\n```\n\n**.env**\n\n```dosini\nAPI_URL=https://api.example.org\nAPI_TOKEN=\n```\n\nIn **users.js**\n\n```js\nimport {API_URL, API_TOKEN} from \"@env\"\n\nfetch(`${API_URL}/users`, {\n  headers: {\n    'Authorization': `Bearer ${API_TOKEN}`\n  }\n})\n```\n\n## White and black lists\n\nIt is possible to limit the scope of env variables that will be imported by specifying a `whitelist` and/or a `blacklist` as an array of strings.\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"blacklist\": [\n        \"GITHUB_TOKEN\"\n      ]\n    }]\n  ]\n}\n```\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"whitelist\": [\n        \"API_URL\",\n        \"API_TOKEN\"\n      ]\n    }]\n  ]\n}\n```\n\n## Safe mode\n\nEnable safe mode to only allow environment variables defined in the `.env` file. This will completely ignore everything that is already defined in the environment.\n\nThe `.env` file has to exist.\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"safe\": true\n    }]\n  ]\n}\n```\n\n## Allow undefined\n\nAllow importing undefined variables, their value will be `undefined`.\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"allowUndefined\": true\n    }]\n  ]\n}\n```\n\n```js\nimport {UNDEFINED_VAR} from '@env'\n\nconsole.log(UNDEFINED_VAR === undefined) // true\n```\n\nWhen `false` (default behavior), an error will be thrown.\n\n## Caveats\n\nWhen using with [`babel-loader`](https://github.com/babel/babel-loader) with caching enabled you will run into issues where environment changes won’t be picked up.\nThis is due to the fact that `babel-loader` computes a `cacheIdentifier` that does not take your environment into account.\n\nYou can easily clear the cache:\n\n```shell\nrm -rf node_modules/.cache/babel-loader/*\n```\n\nOr you can override the default `cacheIdentifier` to include some of your environment variables.\n\n## Credits\n\nBased on [David Chang](https://github.com/zetachang)’s works on [babel-plugin-dotenv](https://github.com/zetachang/react-native-dotenv/tree/master/babel-plugin-dotenv).\n\n## Miscellaneous\n\n```\n    ╚⊙ ⊙╝\n  ╚═(███)═╝\n ╚═(███)═╝\n╚═(███)═╝\n ╚═(███)═╝\n  ╚═(███)═╝\n   ╚═(███)═╝\n```\n","licenseText":"MIT License\n\nCopyright (c) 2017 Bertrand Marron\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"babel-plugin-dotenv-import@2.0.0-beta.2","dist":{"shasum":"dee1f41bff26330407b1a0f6acee02aa5ec0d630","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-2.0.0-beta.2.tgz","fileCount":64,"unpackedSize":15107,"integrity":"sha512-8MdCeIEvQLdj3TaWp1kNFb9G41v+pTR0xcahMKkfLOLlSP0QhSxR2mkInwxMObgE5zm6Mw+Y20lNhUgJMPuhSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChvTH5tgLD67cBNGQmXadr0aeCfSMu0RcLy1y1ieIHRAIhALpViDgTYw7pF49hR1YyVpAxcwn8gQ7RCnazGNxfySGn"}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import_2.0.0-beta.2_1529596853286_0.3930212729937568"},"_hasShrinkwrap":false},"1.4.0":{"name":"babel-plugin-dotenv-import","version":"1.4.0","description":"Load environment variables using import statements.","repository":{"type":"git","url":"git@github.com:tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"nyc ava"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^6.0.0"},"devDependencies":{"ava":"^0.25.0","babel-core":"^6.14.0","codecov":"^3.0.0","nyc":"^12.0.2","xo":"^0.21.0"},"author":{"name":"Bertrand Marron"},"license":"MIT","nyc":{"reporter":["html","json","text"]},"xo":{"semicolon":false,"space":2},"licenseText":"MIT License\n\nCopyright (c) 2017 Bertrand Marron\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"babel-plugin-dotenv-import@1.4.0","dist":{"shasum":"c14f57e1b518f43a2535552ccf0f8b9aa15e5049","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-1.4.0.tgz","fileCount":64,"unpackedSize":15413,"integrity":"sha512-gaqNXXCFgstlarjs90yGpQKyH6BG4lTUn/JSLmwlBlpz1AozRABdmhLUDk+ZXwp57OLuDIJdKlnY2bO6mgpL/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHw42HY/CL82rUWjRye5DnniNa0O69BWMgqUlLk6uH+AIhAKwYtxj6AC14qntHz1QsnanTwfOEMPdchj43VvTAb3LS"}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import_1.4.0_1530211560641_0.7375895313782646"},"_hasShrinkwrap":false},"2.0.0":{"name":"babel-plugin-dotenv-import","version":"2.0.0","description":"Load environment variables using import statements.","repository":{"type":"git","url":"git@github.com:tusbar/babel-plugin-dotenv-import.git"},"main":"index.js","scripts":{"test":"jest"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^6.0.0"},"devDependencies":{"@babel/core":"^7.0.0","codecov":"^3.0.0","jest":"^23.5.0","jest-junit":"^5.1.0","xo":"^0.22.0"},"author":{"name":"Bertrand Marron"},"license":"MIT","jest":{"testEnvironment":"node","testPathIgnorePatterns":["/node_modules/","/__fixtures__/"],"reporters":["default",["jest-junit",{"output":"reports/tests/junit.xml"}]],"collectCoverage":true,"collectCoverageFrom":["index.js"],"coverageReporters":["lcov","text-summary"]},"xo":{"semicolon":false,"space":2,"overrides":[{"files":"__tests__/**/*.js","env":["jest"]},{"files":"__tests__/__fixtures__/**/*.js","rules":{"import/no-unresolved":["error",{"ignore":["@env","foo"]}],"no-unused-vars":"off"}}]},"licenseText":"MIT License\n\nCopyright (c) 2017 Bertrand Marron\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"babel-plugin-dotenv-import@2.0.0","dist":{"shasum":"e17c328c2ce2b22bb9827ad913be97708062e644","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-2.0.0.tgz","integrity":"sha512-+Vi3PsuSa49SNa15fkpBLsbH0fK49cIMJvUxJahYJ7/BQrnqAW7hWS7FoKMitaQHE6/iQhUG4hAbGUQzgUdQcw==","fileCount":63,"unpackedSize":16332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiRz8CRA9TVsSAnZWagAAA/IP/2eCXg4rV8v9jyQNyD12\nVvpM/stm0QKN325PTXKmbpniWmiGFW565u7G3JpA26q4/DyxL3XbB7Ltk0Kl\nblyIXVyFzYw4YE00tGlXG6kIr6V52y3Hq2+ier8qJiBHiqFTJIwb32Cej9ee\nSEjlZJZWGb1NOrh//tFp/PViU6F7+tkBYEGEvBo9cUuYHT4VFemodWDyTQ+C\njyTovKWp4sWbKk1Tc402RwnFt2xdFabGev4d9Pijw83sP8OW/Ce0IWPImG7m\nBK0VMAb72WKjLi/JIojkYQacLLd2/aXiFi541O2o0vkfQE/26Jq4Q5z3Hp2d\nVDZT/jQ856UBV6Q2s+ZiyCZoIQjec2mSmtLSTqC1IlqV5Y5Wh6PZXWfTPAJU\nB2hiJSM++nXqdDllHrnFRwTt1aphSYjRU62CeXoIkCg4MFNekuge4oqwjE3h\ntBxg3o4alrszq07xO+5SW2p2633VROtzm+aPw719InHp7Pd/yWFImEX/psnJ\nU+oDOG4HUPiWKL45WoQ6cxdjG2ztSR71bhzgHTKzLy3UOFAgr+27ndJkzAQu\nXpeuJQIBR6Y2ckJhSL69C7cC8yd+cV1gnH2JJr0yKN6hr5ZUCKvftRvsTo16\n26+W8C0UbMhJs+BQ6v2MHkTiKk0DEW1yx8XTMG3KdH2fEbpP0kovh/YjynKJ\nqtwi\r\n=Cdv0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBPc92z7kvUQl3n3mgG1zpRlKH0FcWSHTWDe/fXz+ZojAiBrpU+Tdg9DuNo72Fx7WcQUw+S/fEtGU6zYCEarRba2Xw=="}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import_2.0.0_1535712508379_0.4442215623530055"},"_hasShrinkwrap":false},"2.1.0":{"name":"babel-plugin-dotenv-import","version":"2.1.0","description":"Load environment variables using import statements.","repository":{"type":"git","url":"https://github.com/tusbar/babel-plugin-dotenv-import.git"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"main":"index.js","scripts":{"test":"jest"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^8.0.0"},"devDependencies":{"@babel/core":"^7.7.7","codecov":"^3.6.1","jest":"^26.0.1","jest-junit":"^10.0.0","xo":"^0.30.0"},"author":{"name":"Bertrand Marron"},"license":"MIT","jest":{"testEnvironment":"node","testPathIgnorePatterns":["/node_modules/","/__fixtures__/"],"reporters":["default",["jest-junit",{"outputDirectory":"reports/tests"}]],"collectCoverage":true,"collectCoverageFrom":["index.js"],"coverageReporters":["lcov","text-summary"]},"xo":{"semicolon":false,"space":2,"overrides":[{"files":"__tests__/**/*.js","env":["jest"]},{"files":"__tests__/__fixtures__/**/*.js","rules":{"import/no-unresolved":["error",{"ignore":["@env","foo"]}],"no-unused-vars":"off"}}]},"licenseText":"MIT License\n\nCopyright (c) 2017 Bertrand Marron\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"babel-plugin-dotenv-import@2.1.0","dist":{"shasum":"5919df1a0d908e91b6a98d82ad12dc9d3a37ddec","integrity":"sha512-ZzCqXbp8uFnhu1lO3nBaWt+rOYpVIXSrY8DEC/oaalL6DHtYP26Ye4TpGcXxNlBD1vzOHTPHo7eNHUIseCoiwA==","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-2.1.0.tgz","fileCount":66,"unpackedSize":17152,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez+aBCRA9TVsSAnZWagAAVuUP/RlOrQkzzxLnV0JVDLtE\n386yVLvpLLrDbCVjMGR2lIfKh9MXvG1rr0jTdzNjh8RIeoOPpXAu/yvAei5W\nyRrhAB7Dw8QiMJB2Gj9UOZpcjb+gAnDyJXTicUKcmttxh7rDJsz2HBTyYJRd\nGquJEN/XGF7P8H7LjuUNQNCxoPOlmY9q3kD7B2aCfHLGIm2Cle8Ayp88B9d4\nE6jj+lHPlccpBhIQFNhIuoXRDZEXiSctmZJWy2wFvb4mHUdGW3eElK+t0bes\n1GCJRz7inST/EdXNCF8tjAudymWqL8zd/vWoR60WUIS7W4kO6/pmJv8KHIOD\n7bNqeURMTJva0uex9vYIZTAM7s89Y5eGM/P3mDySjMoqz2C7JRVVdee4MsDz\nX3nsxgOQzOwnRN8zPlPm6nwqkdRpd2k709lDqeZM9FbMpofjFLrI4lB3BBll\nFSL8JDAaA3qp6A4MXqBjkQjI4OoCr/5pemcnMyR7GUN98+qsHBLK5g9njlmR\nfkM8QpLeGQcKN0QanUjFOqoQxGPhif7qXbrHeKnEWgiLVVvYYuSnXWUuYnpv\nOu39ybLX9e2SzloZu6LuUp61UgqMMdnphnWrfBgnFS1QTDgxR7Jh3XvIY4fB\nW782TvoD2wvTCOUujxitAzscz3kZhwgEhgo2GyTcdSONyFhEWdGWoudWtPzw\nqIjs\r\n=JOj/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAwOwZQ+6kzZbKmiCmTPBhUyLZ4AuK3HnqwGbqGO0DVeAiBIvQKeu+OO3tht5o5txglAiarjM6IeocCfU1VPaUqw+Q=="}]},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import_2.1.0_1590683264940_0.707642042668289"},"_hasShrinkwrap":false},"2.2.0":{"name":"babel-plugin-dotenv-import","version":"2.2.0","description":"Load environment variables using import statements.","repository":{"type":"git","url":"https://github.com/tusbar/babel-plugin-dotenv-import.git"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"main":"index.js","scripts":{"test":"jest"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^8.0.0"},"devDependencies":{"@babel/core":"^7.7.7","codecov":"^3.6.1","jest":"^26.0.1","jest-junit":"^12.0.0","xo":"^0.37.1"},"author":{"name":"Bertrand Marron"},"license":"MIT","jest":{"testEnvironment":"node","testPathIgnorePatterns":["/node_modules/","/__fixtures__/"],"reporters":["default",["jest-junit",{"outputDirectory":"reports/tests"}]],"collectCoverage":true,"collectCoverageFrom":["index.js"],"coverageReporters":["lcov","text-summary"]},"xo":{"semicolon":false,"space":2,"overrides":[{"files":"__tests__/**/*.js","env":["jest"]},{"files":"__tests__/__fixtures__/**/*.js","rules":{"import/no-unresolved":["error",{"ignore":["@env","foo"]}],"no-unused-vars":"off"}}]},"licenseText":"MIT License\n\nCopyright (c) 2017 Bertrand Marron\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"babel-plugin-dotenv-import@2.2.0","dist":{"shasum":"fde16c1e01f4a6ad4e3963f0633d22f5f3b9c666","integrity":"sha512-y6IMz6iqAV5oNgS8Tnbeap9bsWGcOB08ykT/7dVUM4DQ+S+xEuh56Xlpi7L56ueXfX8TpuoJyR/RVUy86bhMBQ==","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-2.2.0.tgz","fileCount":66,"unpackedSize":17152,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKohcCRA9TVsSAnZWagAAho8P/RB5UXJ1J84GXL3R1pRG\nSSInvaseSfOGq1l6RoYaedoxHE4ysEjbc1ur+B/Qnnz4a+MYlychrcb8PNOR\nBQjaMbO0nMDIqY8PeiIaNtEk7orZ0oDGL60GSNP3EdYtbcLUyll2nMSyOcD+\nlTfufFDr3/cYrIZfD8IB4DFa/z3BU8bldknErnGkMAqpRh2d1lwcoV50RsqR\nNaRsWGPOtjo/o9+6mBHwE2bW5qz/8LqsttuBzixPbRKPBdodMNY+BUYHqQlY\nI89xK/RZckWKl1FzM27UNo9Zrk2ifei835HiE15M6k9Xq8pt1jP2YfjDulIR\n1b6HnJpBIjEH280p7Y7joXXyoBkLDLBiPB18J+xekYpBrdJQ5t8Wv6ImoT4l\n4un7BQs0MOXVZLBKEtbqRAynOCPtyLWapXuIpOqdWfKhU5j0kJ8LDDK3pfAV\n1vmnzWk8rOgoKAuKDJCwEYlQQ3AURoIAPnWYhi5er6OwXVEoj3z4P2w4HMls\nUzNmusaUmy8aFInHqTjmTXeTZD+QnXD/0XLUQHuFci0Az8346K8UJKouYc3P\nXvPZffCdmYnC7KbT96UDWhEfWfMtfbnUY4zGIkr66K0fTugHhBMjQrVEpwBn\nK+pyA4tx++LoScwiz421nnugjQsCrKnX6/XoN9ZfdLE9H65ygMPPUWoWS6m2\nWKIP\r\n=Gzi1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyraHm0VmiC3JyGeA8oG8cuy61CPvoisPZd0jKdaRyhQIgCMGDERaiiveFhbIE+mZI8neCx9wtMOqU5ddxHxP40mY="}]},"_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"directories":{},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import_2.2.0_1613400155878_0.45881599767995773"},"_hasShrinkwrap":false},"3.0.0":{"name":"babel-plugin-dotenv-import","version":"3.0.0","description":"Load environment variables using import statements.","repository":{"type":"git","url":"git+https://github.com/tusbar/babel-plugin-dotenv-import.git"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"main":"index.js","scripts":{"test":"jest"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^16.0.3"},"devDependencies":{"@babel/core":"^7.19.3","@bizon/semantic-release-config":"^1.2.0","codecov":"^3.8.3","eslint-config-xo-bizon":"^1.1.1","jest":"^29.1.2","semantic-release":"^19.0.5","xo":"^0.52.4"},"author":{"name":"Bertrand Marron"},"license":"MIT","jest":{"testEnvironment":"node","testPathIgnorePatterns":["/node_modules/","/__fixtures__/"],"collectCoverage":true,"collectCoverageFrom":["index.js"],"coverageReporters":["lcov","text-summary"]},"xo":{"extends":"xo-bizon","semicolon":false,"space":2,"overrides":[{"files":"__tests__/**/*.js","env":["jest"]},{"files":"__tests__/__fixtures__/**/*.js","rules":{"import/no-unresolved":["error",{"ignore":["@env","foo"]}],"no-unused-vars":"off"}}],"prettier":true},"prettier":{"printWidth":100},"release":{"extends":"@bizon/semantic-release-config"},"gitHead":"350e1889a0fa289c81b972d1a2f9a6e3f79ec087","_id":"babel-plugin-dotenv-import@3.0.0","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-77gl86rp1xubvkyzacTCeNUT3fGqNr1cfdRwgCl0fN9CY2hWgpfvDmhEruU/sVEXlrTKZu5eV7jTKE0rnlD/vg==","shasum":"4cbdfa29d3997ab8181abf92604f09ae02fba379","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-3.0.0.tgz","fileCount":50,"unpackedSize":17387,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp9cTTc6PY6+TC/0uml+q5//2U6rL5U4F3UXEpCRSREwIhANfR0hTti5qoeJI+QXngtKX+41HWsOYg0pBpnMSHEEXi"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQpKLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrr0Q//ZcM6/mEth9Uv8s6u1QkfFpZ5aiBVY30+DYpRZyvMcKHHzY4/\r\n0S8sP76Sn1knapWq4B46+U7RBWQljRN7tF6k9e7Q3FruYS8563YJYCJ9AobO\r\n022j+oPAO90ShfG78C7c3Eo+pDWdf1nFR8JMpnW5NSn78dKD3hBIr+AARCW/\r\n05kMw/PUbCmyIMEs8684J9U23kOzagMyH+4LOYJDGz3ve8n7+bLmv2zUUc6I\r\ndeSpHf2oxLl85UpU8B3oNciGyhUcl/EHMprmhZu+LHicNr34uMp0lud0zhOb\r\n+jYxCLlMq9zwl5esgCCP9CvbvLMPFuViImL9PVgw6+VwQhIjsmDK3qBEn/WQ\r\nTxrzfLR/R5HbXzj4C6qkLhB5ICIG9tFbD53mrVupbR/aiCtrlgLbovqVgqA/\r\nXnhHwof6pA8oMTxJtw5Gk9YjOvLojC1MneC7njinFdPoKtI7ULNLbma1vlrj\r\nDChvfspLo9QX5qKEh+Ghgzvkpcc2g0TMtA6JiwMrqbwUAIu0fgg5BY0i5kCE\r\nwBO9Q5mVjW206Fqjd0bWijgqXhIy7GbXL4MYf5OjypsuC53xaPTwFRighkE/\r\nOfj1Te4ZlwLpMlR8+TvOesVWlkCrppNoDfESLIe1ihxe8jr1Gv5o7DuRjsIs\r\nymJv7PU0r6GGEPEIXSYUah40Dnt1da5JQBs=\r\n=CYe9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"directories":{},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import_3.0.0_1665307275572_0.9409222870383627"},"_hasShrinkwrap":false},"3.0.1":{"name":"babel-plugin-dotenv-import","version":"3.0.1","description":"Load environment variables using import statements.","repository":{"type":"git","url":"git+https://github.com/tusbar/babel-plugin-dotenv-import.git"},"homepage":"https://github.com/tusbar/babel-plugin-dotenv-import","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"},"main":"index.js","scripts":{"test":"jest"},"keywords":["dotenv","babel-plugin"],"dependencies":{"dotenv":"^16.0.3"},"devDependencies":{"@babel/core":"^7.19.3","@bizon/semantic-release-config":"^1.2.0","codecov":"^3.8.3","eslint-config-xo-bizon":"^1.1.1","jest":"^29.1.2","semantic-release":"^19.0.5","xo":"^0.52.4"},"author":{"name":"Bertrand Marron"},"license":"MIT","jest":{"testEnvironment":"node","testPathIgnorePatterns":["/node_modules/","/__fixtures__/"],"collectCoverage":true,"collectCoverageFrom":["index.js"],"coverageReporters":["lcov","text-summary"]},"xo":{"extends":"xo-bizon","semicolon":false,"space":2,"overrides":[{"files":"__tests__/**/*.js","env":["jest"]},{"files":"__tests__/__fixtures__/**/*.js","rules":{"import/no-unresolved":["error",{"ignore":["@env","foo"]}],"no-unused-vars":"off"}}],"prettier":true},"prettier":{"printWidth":100},"release":{"extends":"@bizon/semantic-release-config"},"gitHead":"9f64c7e50e317af15a4fa34d62d25f35bf1aa797","_id":"babel-plugin-dotenv-import@3.0.1","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-kW01sNKBc3maCTQZN7LhHf9YtwQUXv/NPLhPHu6Yuxiwn+C0AOFBNE4BfRSmft2NFjfqtpb6HUalJe9Z5DQENA==","shasum":"d03498ddae51d58d5899e5f4b37e8a2d33925982","tarball":"https://registry.npmjs.org/babel-plugin-dotenv-import/-/babel-plugin-dotenv-import-3.0.1.tgz","fileCount":4,"unpackedSize":8512,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqSxw0gPy6Ks9epEYNCrTh3g8RPFZmzGBINWHbpJLgAAiEAh3pkISU158geC4joMhfKBZQ2BdDRe6biMoGvQVAliGM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQpSlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZvQ/+NGPoBGJ7gyaFpVQWaq5WLtNbzNdLKtUItT9e4yKam5lD43XH\r\n294U7ynOtc6mePfBshSMuGRsCAUM61ylb6fvGYhNozBVfwaHWOHAf711mVep\r\nAdlVuhYojJXkYgxovhq38v/P/5jBGWJm49ZXtZQmysdPlklz11uZTfhhw9XD\r\nJnsdyY6AMZi6SeFecZUrqFPI2+jYQzUHWUsxgl5VajtLfi3+a6pTDyGw3NIG\r\nJ6d56UN/sXhlBdJ0FitbpO1CLySz65n5Xr599oJDlyKHlweh/Y9ki3l4eXQL\r\nWOr+3IIGmbH4RXz0AoyQ6CEnFb4fAJUkq4pNftkESDJ1YVLoIdN8rkR5rjIv\r\nn1O+TETew4/DnhtOjbkJBEOh/+YWIQoqN8TgppK/BWhhQ0SFbUCxhWWcmjF/\r\nzTkHNbD8UR5SDy58aFMz0Z0cJ94gYAc9ipRkEv6J9aiSs5oPGxI/1clgQlVx\r\nto5pm/s8/Z1W9f3AdWCboiECSFPJfk6or97uejbg3PMnfee063bStpyiUt7n\r\nAt7aOE+lsxGqi+pnhRFPH6FkpJpRE0OkL3bH0fUiRJn4uXwMquvp+hhPI6H0\r\njcLIPv3kqyPeBI4Z8pkyTEIqVWoNser+Y8C0AEAE0cbvnEsiZ91LX7IgNhsa\r\nIgS7uVhs19Xk8lHAu+AcFMz23gXrfLzFPs8=\r\n=OQbi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tusbar","email":"bertrand.marron@gmail.com"},"directories":{},"maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dotenv-import_3.0.1_1665307812974_0.1212089299304393"},"_hasShrinkwrap":false}},"readme":"# babel-plugin-dotenv-import\n\n> Load environment variables using `import` statements.\n\n[![npm version](https://badgen.net/npm/v/babel-plugin-dotenv-import)](https://www.npmjs.com/package/babel-plugin-dotenv-import)\n[![codecov](https://badgen.net/codecov/c/github/tusbar/babel-plugin-dotenv-import)](https://codecov.io/gh/tusbar/babel-plugin-dotenv-import)\n[![XO code style](https://badgen.net/badge/code%20style/XO/cyan)](https://github.com/xojs/xo)\n\n## CI\n\n[![Tests](https://github.com/tusbar/babel-plugin-dotenv-import/actions/workflows/tests.yml/badge.svg)](https://github.com/tusbar/babel-plugin-dotenv-import/actions/workflows/tests.yml)\n[![Release](https://github.com/tusbar/babel-plugin-dotenv-import/actions/workflows/release.yml/badge.svg)](https://github.com/tusbar/babel-plugin-dotenv-import/actions/workflows/release.yml)\n\n## Installation\n\n```sh\n$ npm install babel-plugin-dotenv-import\n```\n\n## Usage\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"moduleName\": \"@env\",\n      \"path\": \".env\",\n      \"blocklist\": null,\n      \"allowlist\": null,\n      \"safe\": false,\n      \"allowUndefined\": false\n    }]\n  ]\n}\n```\n\n**.env**\n\n```dosini\nAPI_URL=https://api.example.org\nAPI_TOKEN=\n```\n\nIn **users.js**\n\n```js\nimport {API_URL, API_TOKEN} from \"@env\"\n\nfetch(`${API_URL}/users`, {\n  headers: {\n    'Authorization': `Bearer ${API_TOKEN}`\n  }\n})\n```\n\n## Allow and block lists\n\nIt is possible to limit the scope of env variables that will be imported by specifying a `allowlist` and/or a `blocklist` as an array of strings.\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"blocklist\": [\n        \"GITHUB_TOKEN\"\n      ]\n    }]\n  ]\n}\n```\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"allowlist\": [\n        \"API_URL\",\n        \"API_TOKEN\"\n      ]\n    }]\n  ]\n}\n```\n\n## Safe mode\n\nEnable safe mode to only allow environment variables defined in the `.env` file. This will completely ignore everything that is already defined in the environment.\n\nThe `.env` file has to exist.\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"safe\": true\n    }]\n  ]\n}\n```\n\n## Allow undefined\n\nAllow importing undefined variables, their value will be `undefined`.\n\n```json\n{\n  \"plugins\": [\n    [\"dotenv-import\", {\n      \"allowUndefined\": true\n    }]\n  ]\n}\n```\n\n```js\nimport {UNDEFINED_VAR} from '@env'\n\nconsole.log(UNDEFINED_VAR === undefined) // true\n```\n\nWhen `false` (default behavior), an error will be thrown.\n\n## Caveats\n\nWhen using with [`babel-loader`](https://github.com/babel/babel-loader) with caching enabled you will run into issues where environment changes won’t be picked up.\nThis is due to the fact that `babel-loader` computes a `cacheIdentifier` that does not take your environment into account.\n\nYou can easily clear the cache:\n\n```shell\nrm -rf node_modules/.cache/babel-loader/*\n```\n\nOr you can override the default `cacheIdentifier` to include some of your environment variables.\n\n## Credits\n\nBased on [David Chang](https://github.com/zetachang)’s works on [babel-plugin-dotenv](https://github.com/zetachang/react-native-dotenv/tree/master/babel-plugin-dotenv).\n\n## Miscellaneous\n\n```\n    ╚⊙ ⊙╝\n  ╚═(███)═╝\n ╚═(███)═╝\n╚═(███)═╝\n ╚═(███)═╝\n  ╚═(███)═╝\n   ╚═(███)═╝\n```\n","maintainers":[{"name":"tusbar","email":"bertrand.marron@gmail.com"}],"time":{"modified":"2022-10-09T09:30:13.186Z","created":"2017-10-25T22:36:06.242Z","1.0.0":"2017-10-25T22:36:06.242Z","1.1.0":"2017-11-05T01:59:31.276Z","1.2.0":"2017-11-05T17:58:32.391Z","1.2.1":"2017-11-05T19:06:06.368Z","1.2.2":"2017-11-05T20:09:55.992Z","1.3.0":"2017-11-06T11:36:54.218Z","1.3.1":"2017-12-29T10:29:50.147Z","2.0.0-beta.1":"2018-05-20T13:24:36.744Z","2.0.0-beta.2":"2018-06-21T16:00:53.348Z","1.4.0":"2018-06-28T18:46:00.737Z","2.0.0":"2018-08-31T10:48:28.583Z","2.1.0":"2020-05-28T16:27:45.345Z","2.2.0":"2021-02-15T14:42:36.039Z","3.0.0":"2022-10-09T09:21:15.742Z","3.0.1":"2022-10-09T09:30:13.108Z"},"keywords":["dotenv","babel-plugin"],"repository":{"type":"git","url":"git+https://github.com/tusbar/babel-plugin-dotenv-import.git"},"author":{"name":"Bertrand Marron"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/tusbar/babel-plugin-dotenv-import","bugs":{"url":"https://github.com/tusbar/babel-plugin-dotenv-import/issues"}}