peach a19a732be8 commit message il y a 2 ans
..
CHANGELOG.md a19a732be8 commit message il y a 2 ans
LICENCE a19a732be8 commit message il y a 2 ans
README.md a19a732be8 commit message il y a 2 ans
index.d.ts a19a732be8 commit message il y a 2 ans
index.js a19a732be8 commit message il y a 2 ans
package.json a19a732be8 commit message il y a 2 ans

README.md

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