1.0.4 • Published 3 years ago

manual-node-env v1.0.4

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

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

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago