/ never-odd-or-even / back / node_modules / std-env /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]package.json2 years ago1.4K 
[   ]index.js40 years ago1.3K 
[TXT]index.d.ts40 years ago394  
[TXT]README.md40 years ago646  
[   ]LICENCE40 years ago1.0K 
[TXT]CHANGELOG.md40 years ago271  
README.md

std-env

npm npm

Detect running environment of the current Node.js process.

Installation

Using Yarn:

yarn add std-env

Using npm:

npm i std-env

Usage

const env = require('std-env')

console.log(env)

/*
{
  browser: false,
  test: false,
  dev: true,
  production: false,
  debug: false,
  ci: false,
  tty: true,
  minimalCLI: false,
  windows: false,
  darwin: true,
  linux: false
}
*/

License

MIT

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80