lhl 6ff0e96ad3 8-4-1 1 年之前
..
README.md 6ff0e96ad3 8-4-1 1 年之前
index.js 6ff0e96ad3 8-4-1 1 年之前
package.json 6ff0e96ad3 8-4-1 1 年之前

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