Skip to content
Detect running environment of the current Node.js process
JavaScript
Branch: master
Clone or download
Latest commit 1e706f0 Nov 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore initial commit Mar 30, 2018
README.md update readme Sep 21, 2018
index.js fix: fix typo Nov 8, 2018
package.json 2.2.1 Nov 8, 2018
yarn.lock perf: directly use ci-info package Sep 21, 2018

README.md

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

You can’t perform that action at this time.