loose-envify
Advanced tools
Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST
Weekly downloads
Readme
Fast (and loose) selective process.env
replacer using js-tokens instead of an AST. Works just like envify but much faster.
console.log(`the current env is ${process.env.NODE_ENV}`);
console.log(process./*won't*/env./*work*/NODE_ENV);
loose-envify has the exact same interface as envify, including the CLI.
envify:
for i in {1..5}; do node bench/bench.js 'envify'; done
708ms
727ms
791ms
719ms
720ms
loose-envify:
for i in {1..5}; do node bench/bench.js '../'; done
51ms
52ms
52ms
52ms
52ms
Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST
The npm package loose-envify receives a total of 15,198,640 weekly downloads. As such, loose-envify popularity was classified as popular.
We found that loose-envify demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.