line_push/node_modules/std-env
2022-07-21 03:28:35 +00:00
..
CHANGELOG.md V1 2022-07-21 03:28:35 +00:00
index.d.ts V1 2022-07-21 03:28:35 +00:00
index.js V1 2022-07-21 03:28:35 +00:00
LICENCE V1 2022-07-21 03:28:35 +00:00
package.json V1 2022-07-21 03:28:35 +00:00
README.md V1 2022-07-21 03:28:35 +00:00

std-env

npm npm

Detect running environment of the current Node.js process.

Installation

Using Yarn:

yarn add std-env

Using 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