Get unlimited public & private packages + team-based management with npm Teams.Learn more »

lightenv

1.1.0 • Public • Published

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.

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

Install

npm i lightenv

DownloadsWeekly Downloads

4

Version

1.1.0

License

ISC

Unpacked Size

2.73 kB

Total Files

5

Last publish

Collaborators

  • avatar