1.0.1 • Published 2 years ago
cli-node-env v1.0.1
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-envUsage:
/* 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=whateverMade by Nazmus Sayad with ❤️.