{ "_id": "loose-envify", "_rev": "11-633693001456222da34d48002bda6572", "name": "loose-envify", "description": "Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST", "dist-tags": { "latest": "1.4.0" }, "versions": { "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": "zertosh@gmail.com" } ], "dist": { "shasum": "df40073c10a625c178cccb0db23164c0fd058e75", "tarball": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.0.0.tgz" }, "directories": {} }, "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": "zertosh@gmail.com" } ], "dist": { "shasum": "527582d62cff4e04da3f9976c7110d3392ec7e0c", "tarball": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.1.0.tgz" }, "directories": {} }, "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", "tarball": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.2.0.tgz" }, "maintainers": [ { "name": "zertosh", "email": "zertosh@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/loose-envify-1.2.0.tgz_1463284327398_0.7049096294213086" }, "directories": {} }, "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", "tarball": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.0.tgz" }, "maintainers": [ { "name": "zertosh", "email": "zertosh@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/loose-envify-1.3.0.tgz_1477683270638_0.3732579650823027" }, "directories": {} }, "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", "tarball": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz" }, "maintainers": [ { "name": "zertosh", "email": "zertosh@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/loose-envify-1.3.1.tgz_1484486581665_0.5577248032204807" }, "directories": {} }, "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": { "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "shasum": "71ee51fa7be4caec1a63839f7e682d8132d30caf", "tarball": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "fileCount": 8, "unpackedSize": 5814, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRJP5CRA9TVsSAnZWagAAQQ4P+wRneDh61dzk3uPX6QCb\nZ97i+VxSY74ti8gVGSCryXFkL8zPsjlBd1/yADnaS5y6InlHuHQZQ2820I3x\ngfSjlhCU9drbF8vXw7FSxIRQfFO5JvF7+L5M1mvsDVmz024M+97DQwFnRjo5\nCvSDVLC/HbnnTRX1Cfj9kQlDVS85RhLaDvYWendfUfivp++TwUizDUTS8nOu\nVIiwXygaef55bBmo+yNeQa+GmyAWET3jAaPl0MNBht6jtnMY9ZkgwXc03zaE\n0wRcOZbBfhUKk1VEk2TCN/TtN+AyktbI5rmyQXoHBGn3HjZntI/LjLmAw9dD\ndetTKPf1O2n8KLT/tGZjIRQjQWNbB51thQ4H3KsMBSfbIhdnZvFHmnDKilug\nIGjE4lKa4px0/ac+SBw6wQuZMy4I3xCbZd59qSpPB3IO0E+Qm+rhLdUiMDjf\n2y49xwMB7dixjRv7sLLqYwiSkXGkLp1N81drN7oNoZaLxOVCbJQKYoHwnsY4\ncoRc7W768FaKwZJPIWfZK2u2MAq5TL4v2+2laxAn25K5Qs6hh8rguSho7iPR\nZcaKA/maVJo8BGO+CEqvaysfUbnYZ06VOFnzG/TbLnLlmZUMMex95z8RloP8\n4kcoh3muuqd75sMUDURgjFCvXbQeORMZ3sa+G8h716pUVjvKLu5xNOF7qCN0\npadk\r\n=rcpJ\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "zertosh", "email": "zertosh@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/loose-envify_1.4.0_1531220985830_0.4259877346481684" } } }, "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", "maintainers": [ { "name": "zertosh", "email": "zertosh@gmail.com" } ], "time": { "modified": "2018-07-10T11:09:49.646Z", "created": "2015-09-21T04:02:42.524Z", "1.0.0": "2015-09-21T04:02:42.524Z", "1.1.0": "2015-10-18T14:42:18.633Z", "1.2.0": "2016-05-15T03:52:10.703Z", "1.3.0": "2016-10-28T19:34:32.580Z", "1.3.1": "2017-01-15T13:23:02.230Z", "1.4.0": "2018-07-10T11:09:45.917Z" }, "homepage": "https://github.com/zertosh/loose-envify", "keywords": [ "environment", "variables", "browserify", "browserify-transform", "transform", "source", "configuration" ], "repository": { "type": "git", "url": "git://github.com/zertosh/loose-envify.git" }, "author": { "name": "Andres Suarez", "email": "zertosh@gmail.com" }, "bugs": { "url": "https://github.com/zertosh/loose-envify/issues" }, "license": "MIT", "readmeFilename": "README.md", "users": { "chinawolf_wyp": true, "alexxnica": true, "shuoshubao": true, "nraibaud": true, "chaoliu": true }, "_attachments": {} }