JSPM

  • Created
  • Published
  • Downloads 12064723
  • Score
    100M100P100Q208789F
  • License MIT

Detect running environment of the current Node.js process

Package Exports

  • std-env

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (std-env) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

STD-ENV

Detect running environment of the current Node.js process.

Installation

Using yarn:

yarn add std-env

Usin npm:

npm i std-env

Usage

cost env = require('std-env')

console.log(env)

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

License

MIT