1.0.4 • Published 3 years ago
manual-node-env v1.0.4
manual-node-env
Simple usages of NODE_ENV
Features
- No configuration
- Lightweight
Installation
- with npm
npm i manual-node-env
- with yarn
yarn add manual-node-env
- with pnpm
pnpm add manual-node-env
Usage:
/* index.js */
// Use this package at the top of your entry file
// Esmodules
import 'manual-node-env'
// CommonJS modules
require('manual-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 ❤️.