std-env
Detect running environment of the current Node.js process
Last updated 7 years ago by pi0 .
MIT · Repository · Bugs · Original npm
$ cnpm install std-env 
SYNC missed versions from official npm registry.

std-env

npm npm

Detect running environment of the current Node.js process.

Installation

Using yarn:

yarn add std-env

Usin 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

Current Tags

  • 3.3.3                                ...           latest (2 years ago)

7 Versions

  • 3.3.3                                ...           2 years ago
  • 3.3.0                                ...           3 years ago
  • 3.1.1                                ...           3 years ago
  • 2.3.1                                ...           4 years ago
  • 3.0.1                                ...           4 years ago
  • 1.3.1                                ...           7 years ago
  • 2.2.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org