sevl
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

sevl

npm version types size coverage vulnerabilities dependencies devDependencies License

small .env loader

Installation

$ npm i sevl

Usage

import sevl from 'sevl';

sevl() //asyncronously imports .env to process.env

sevl(config: Config)

Config

default description
cwd process.cwd() current work dir
bufferSize 32768 buffer size of stream

Functionality

sevl tries to load files in the following order:

  1. .env.${NODE_ENV}
  2. .env
  3. .env.local

Already present environment variables and these loaded sub-sequentially will not be overwritten.

Licence

MIT License, see LICENSE

Readme

Keywords

none

Package Sidebar

Install

npm i sevl

Weekly Downloads

3

Version

0.2.0

License

MIT

Unpacked Size

12.2 kB

Total Files

15

Last publish

Collaborators

  • sovrin