0.0.1 • Published 10 months ago
dotenv-sw v0.0.1
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";
0.0.1
10 months ago