1.0.1 • Published 2 years ago

cli-node-env v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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 ❤️.

1.0.1

2 years ago

1.0.0

2 years ago