cli-node-env
v1.0.1
Published
manually set node env
Downloads
4
Readme
cli-node-env
Simple usages of NODE_ENV
Features
- No configuration
- Lightweight
Installation
- with npm
npm i cli-node-env
- with yarn
yarn add cli-node-env
- with pnpm
pnpm add cli-node-env
Usage:
/* index.js */
// Use this package at the top of your entry file
// Esmodules
import 'cli-node-env'
// CommonJS modules
require('cli-node-env')
console.log(process.env.NODE_ENV)
// ...
node index.js --NODE_ENV=production
node index.js --NODE_ENV=development
node index.js --NODE_ENV=whatever
Made by Nazmus Sayad with ❤️.