dotenv-sw
v0.0.1
Published
Load environment variables from a .env file into process.env.
Downloads
3
Readme
dotenv-sw
Load environment variables from a .env file into process.env.
Differences from original dotenv
- ✅ Comes with CLI
dotenv
- ✅ Load
.env.${NODE_ENV}
files - ✅ Print loaded files in the console
Installation
npm install dotenv-sw
Usage
As early as possible in your application, require and configure dotenv-sw.
require("dotenv-sw").config({
// cwd: '../..'
// silent: true
});
or
import "dotenv-sw/config";