small .env loader
$ npm i sevl
import sevl from 'sevl';
sevl() //asyncronously imports .env to process.env
default | description | |
---|---|---|
cwd |
process.cwd() | current work dir |
bufferSize |
32768 | buffer size of stream |
sevl
tries to load files in the following order:
.env.${NODE_ENV}
.env
.env.local
Already present environment variables and these loaded sub-sequentially will not be overwritten.
MIT License, see LICENSE