{"_id":"loose-envify","_rev":"44289","name":"loose-envify","description":"Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST","dist-tags":{"latest":"1.4.0"},"maintainers":[{"name":"zertosh","email":""}],"time":{"modified":"2022-10-18T09:05:31.000Z","created":"2015-09-21T04:02:42.524Z","1.4.0":"2018-07-10T11:09:45.917Z","1.3.1":"2017-01-15T13:23:02.230Z","1.3.0":"2016-10-28T19:34:32.580Z","1.2.0":"2016-05-15T03:52:10.703Z","1.1.0":"2015-10-18T14:42:18.633Z","1.0.0":"2015-09-21T04:02:42.524Z"},"users":{},"author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"repository":{"type":"git","url":"git://github.com/zertosh/loose-envify.git"},"versions":{"1.4.0":{"name":"loose-envify","version":"1.4.0","description":"Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST","keywords":["environment","variables","browserify","browserify-transform","transform","source","configuration"],"homepage":"https://github.com/zertosh/loose-envify","license":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"main":"index.js","bin":{"loose-envify":"cli.js"},"repository":{"type":"git","url":"git://github.com/zertosh/loose-envify.git"},"scripts":{"test":"tap test/*.js"},"dependencies":{"js-tokens":"^3.0.0 || ^4.0.0"},"devDependencies":{"browserify":"^13.1.1","envify":"^3.4.0","tap":"^8.0.0"},"gitHead":"a8fdd02e3a435195f526053882d64537d627b3e6","bugs":{"url":"https://github.com/zertosh/loose-envify/issues"},"_id":"loose-envify@1.4.0","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"zertosh","email":"zertosh@gmail.com"},"dist":{"shasum":"71ee51fa7be4caec1a63839f7e682d8132d30caf","size":2842,"noattachment":false,"key":"/loose-envify/-/loose-envify-1.4.0.tgz","tarball":"http://name.csiicloud.com:7001/loose-envify/download/loose-envify-1.4.0.tgz"},"maintainers":[{"name":"zertosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loose-envify_1.4.0_1531220985830_0.4259877346481684"},"_hasShrinkwrap":false,"publish_time":1531220985917,"_cnpm_publish_time":1531220985917},"1.3.1":{"name":"loose-envify","version":"1.3.1","description":"Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST","keywords":["environment","variables","browserify","browserify-transform","transform","source","configuration"],"homepage":"https://github.com/zertosh/loose-envify","license":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"main":"index.js","bin":{"loose-envify":"cli.js"},"repository":{"type":"git","url":"git://github.com/zertosh/loose-envify.git"},"scripts":{"test":"tap test/*.js"},"dependencies":{"js-tokens":"^3.0.0"},"devDependencies":{"browserify":"^13.1.1","envify":"^3.4.0","tap":"^8.0.0"},"gitHead":"7b2d41e61a7ddba5335154b4aba327f6e850f7fd","bugs":{"url":"https://github.com/zertosh/loose-envify/issues"},"_id":"loose-envify@1.3.1","_shasum":"d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"zertosh","email":"zertosh@gmail.com"},"dist":{"shasum":"d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848","size":2932,"noattachment":false,"key":"/loose-envify/-/loose-envify-1.3.1.tgz","tarball":"http://name.csiicloud.com:7001/loose-envify/download/loose-envify-1.3.1.tgz"},"maintainers":[{"name":"zertosh","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/loose-envify-1.3.1.tgz_1484486581665_0.5577248032204807"},"directories":{},"publish_time":1484486582230,"_cnpm_publish_time":1484486582230,"_hasShrinkwrap":false},"1.3.0":{"name":"loose-envify","version":"1.3.0","description":"Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST","keywords":["environment","variables","browserify","browserify-transform","transform","source","configuration"],"homepage":"https://github.com/zertosh/loose-envify","license":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"main":"index.js","bin":{"loose-envify":"cli.js"},"repository":{"type":"git","url":"git://github.com/zertosh/loose-envify.git"},"scripts":{"test":"tap test/*.js"},"dependencies":{"js-tokens":"^2.0.0"},"devDependencies":{"browserify":"^13.1.1","envify":"^3.4.0","tap":"^8.0.0"},"gitHead":"11c1714ff0f25b6046c38eedd909f2ae9fa12446","bugs":{"url":"https://github.com/zertosh/loose-envify/issues"},"_id":"loose-envify@1.3.0","_shasum":"6b26248c42f6d4fa4b0d8542f78edfcde35642a8","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"zertosh","email":"zertosh@gmail.com"},"dist":{"shasum":"6b26248c42f6d4fa4b0d8542f78edfcde35642a8","size":3917,"noattachment":false,"key":"/loose-envify/-/loose-envify-1.3.0.tgz","tarball":"http://name.csiicloud.com:7001/loose-envify/download/loose-envify-1.3.0.tgz"},"maintainers":[{"name":"zertosh","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/loose-envify-1.3.0.tgz_1477683270638_0.3732579650823027"},"directories":{},"publish_time":1477683272580,"_cnpm_publish_time":1477683272580,"_hasShrinkwrap":false},"1.2.0":{"name":"loose-envify","version":"1.2.0","description":"Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST","keywords":["environment","variables","browserify","browserify-transform","transform","source","configuration"],"homepage":"https://github.com/zertosh/loose-envify","license":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"bin":{"loose-envify":"cli.js"},"repository":{"type":"git","url":"git://github.com/zertosh/loose-envify.git"},"scripts":{"test":"tap test/*.js"},"dependencies":{"js-tokens":"^1.0.1"},"devDependencies":{"browserify":"^11.0.1","envify":"^3.4.0","tap":"^1.4.0"},"gitHead":"58a4c7641e8c8569df3e7cea72b398a9cb1cf158","bugs":{"url":"https://github.com/zertosh/loose-envify/issues"},"_id":"loose-envify@1.2.0","_shasum":"69a65aad3de542cf4ee0f4fe74e8e33c709ccb0f","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"zertosh","email":"zertosh@gmail.com"},"dist":{"shasum":"69a65aad3de542cf4ee0f4fe74e8e33c709ccb0f","size":2235,"noattachment":false,"key":"/loose-envify/-/loose-envify-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/loose-envify/download/loose-envify-1.2.0.tgz"},"maintainers":[{"name":"zertosh","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/loose-envify-1.2.0.tgz_1463284327398_0.7049096294213086"},"directories":{},"publish_time":1463284330703,"_cnpm_publish_time":1463284330703,"_hasShrinkwrap":false},"1.1.0":{"name":"loose-envify","version":"1.1.0","description":"Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST","keywords":["environment","variables","browserify","browserify-transform","transform","source","configuration"],"homepage":"https://github.com/zertosh/loose-envify","license":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"repository":{"type":"git","url":"git://github.com/zertosh/loose-envify.git"},"scripts":{"test":"tap test/*.js"},"dependencies":{"js-tokens":"^1.0.1"},"devDependencies":{"browserify":"^11.0.1","envify":"^3.4.0","tap":"^1.4.0"},"gitHead":"f536f4fdbde317d77827ac8655c6c8473928b9e1","bugs":{"url":"https://github.com/zertosh/loose-envify/issues"},"_id":"loose-envify@1.1.0","_shasum":"527582d62cff4e04da3f9976c7110d3392ec7e0c","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"zertosh","email":"zertosh@gmail.com"},"maintainers":[{"name":"zertosh","email":""}],"dist":{"shasum":"527582d62cff4e04da3f9976c7110d3392ec7e0c","size":2020,"noattachment":false,"key":"/loose-envify/-/loose-envify-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/loose-envify/download/loose-envify-1.1.0.tgz"},"directories":{},"publish_time":1445179338633,"_cnpm_publish_time":1445179338633,"_hasShrinkwrap":false},"1.0.0":{"name":"loose-envify","version":"1.0.0","description":"Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST","keywords":["environment","variables","browserify","browserify-transform","transform","source","configuration"],"homepage":"https://github.com/zertosh/loose-envify","license":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"repository":{"type":"git","url":"git://github.com/zertosh/loose-envify.git"},"scripts":{"test":"tap test/*.js"},"dependencies":{"js-tokens":"^1.0.1"},"devDependencies":{"browserify":"^11.0.1","envify":"^3.4.0","tap":"^1.4.0"},"gitHead":"93e8785c8b7a1fbf14e01c4b4aed4d102110a328","bugs":{"url":"https://github.com/zertosh/loose-envify/issues"},"_id":"loose-envify@1.0.0","_shasum":"df40073c10a625c178cccb0db23164c0fd058e75","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"zertosh","email":"zertosh@gmail.com"},"maintainers":[{"name":"zertosh","email":""}],"dist":{"shasum":"df40073c10a625c178cccb0db23164c0fd058e75","size":1952,"noattachment":false,"key":"/loose-envify/-/loose-envify-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/loose-envify/download/loose-envify-1.0.0.tgz"},"directories":{},"publish_time":1442808162524,"_cnpm_publish_time":1442808162524,"_hasShrinkwrap":false}},"readme":"# loose-envify\n\n[![Build Status](https://travis-ci.org/zertosh/loose-envify.svg?branch=master)](https://travis-ci.org/zertosh/loose-envify)\n\nFast (and loose) selective `process.env` replacer using [js-tokens](https://github.com/lydell/js-tokens) instead of an AST. Works just like [envify](https://github.com/hughsk/envify) but much faster.\n\n## Gotchas\n\n* Doesn't handle broken syntax.\n* Doesn't look inside embedded expressions in template strings.\n  - **this won't work:**\n  ```js\n  console.log(`the current env is ${process.env.NODE_ENV}`);\n  ```\n* Doesn't replace oddly-spaced or oddly-commented expressions.\n  - **this won't work:**\n  ```js\n  console.log(process./*won't*/env./*work*/NODE_ENV);\n  ```\n\n## Usage/Options\n\nloose-envify has the exact same interface as [envify](https://github.com/hughsk/envify), including the CLI.\n\n## Benchmark\n\n```\nenvify:\n\n  $ for i in {1..5}; do node bench/bench.js 'envify'; done\n  708ms\n  727ms\n  791ms\n  719ms\n  720ms\n\nloose-envify:\n\n  $ for i in {1..5}; do node bench/bench.js '../'; done\n  51ms\n  52ms\n  52ms\n  52ms\n  52ms\n```\n","_attachments":{},"homepage":"https://github.com/zertosh/loose-envify","bugs":{"url":"https://github.com/zertosh/loose-envify/issues"},"license":"MIT"}