This is a tiny library for NodeJS which parses environment variables and converts them into a deeply nested object.
index.js
var envparse = console
$ TEST_user=bobby node index.js
$ TEST_database_username=bla$ TEST_database_password=morebla$ node index.js
API
envparse(opts)
Where opts
is an object containing:
- prefix: the prefix that will be searched for optional
If opts
is a string, it will use that string as a prefix.
License
The MIT License