JSPM

  • Created
  • Published
  • Downloads 12064723
  • Score
    100M100P100Q208755F
  • 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

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