2.0.1 • Published 4 years ago

lightenv v2.0.1

Weekly downloads
244
License
ISC
Repository
github
Last release
4 years ago

lightenv

lightenv is a lightweight .env parser with no dependencies or config

Install and use

  1. Run npm i -s lightenv in your project
  2. require('lightenv'); in a file such as index.js in the same directory as your .env file before you use any environment variables.

Debugging

If for some reason you need to debug your .env file or while developing this module manually add a LIGHTENV_DEBUG environment variable like how you see on the first line of test.js;

Sample .env

# lightenv ignores lines that start with #
# It does not trim whitespace or work with multiline values. To use multiline values escape using \n.
PORT=1234
MYKEY=c73e72d1c1524=5b59f8e1be9bcca065e
2.0.1

4 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago