/ never-odd-or-even / back / node_modules / loose-envify /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]package.json2 years ago2.0K 
[   ]replace.js39 years ago1.5K 
[   ]LICENSE39 years ago1.1K 
[TXT]README.md39 years ago1.0K 
[   ]loose-envify.js39 years ago791  
[   ]cli.js39 years ago356  
[   ]custom.js39 years ago 83  
[   ]index.js39 years ago 72  
README.md

loose-envify

Build Status

Fast (and loose) selective process.env replacer using js-tokens instead of an AST. Works just like envify but much faster.

Gotchas

Usage/Options

loose-envify has the exact same interface as envify, including the CLI.

Benchmark

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
Apache/2.4.38 (Debian) Server at www.karls.computer Port 80