std-env

Detect running environment of the current Node.js process

invalid
Last updated 6 years ago by pi0 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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

  • 4.3.0                                ...           latest (2 months ago)

41 Versions

  • 4.3.0                                ...           2 months ago
  • 4.2.0                                ...           5 months ago
  • 4.1.0                                ...           7 months ago
  • 4.0.0                                ...           9 months ago
  • 4.0.0-rc.1                                ...           9 months ago
  • 3.10.0                                ...           a year ago
  • 3.9.0                                ...           2 years ago
  • 3.8.1                                ...           2 years ago
  • 3.8.0                                ...           2 years ago
  • 3.7.0                                ...           3 years ago
  • 3.6.0                                ...           3 years ago
  • 3.5.0                                ...           3 years ago
  • 3.4.3                                ...           3 years ago
  • 3.4.2                                ...           3 years ago
  • 3.4.1                                ...           3 years ago
  • 3.4.0                                ...           3 years ago
  • 3.3.3                                ...           4 years ago
  • 3.3.2                                ...           4 years ago
  • 3.3.1                                ...           4 years ago
  • 3.3.0                                ...           4 years ago
  • 3.2.1                                ...           4 years ago
  • 3.1.1                                ...           5 years ago
  • 3.1.0 [deprecated]           ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 3.0.0-0                                ...           5 years ago
  • 2.3.1                                ...           5 years ago
  • 2.3.0                                ...           6 years ago
  • 3.0.0-alpha [deprecated]           ...           6 years ago
  • 2.2.1                                ...           8 years ago
  • 2.2.0                                ...           8 years ago
  • 2.1.1                                ...           8 years ago
  • 2.1.0                                ...           8 years ago
  • 2.0.2                                ...           8 years ago
  • 2.0.1                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.3.1                                ...           8 years ago
  • 1.3.0                                ...           9 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 94
Today 0
This Week 5
This Month 64
Last Day 0
Last Week 2
Last Month 8
Dependencies (1)
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE