peach a19a732be8 commit message | 2 gadi atpakaļ | |
---|---|---|
.. | ||
CHANGELOG.md | 2 gadi atpakaļ | |
LICENCE | 2 gadi atpakaļ | |
README.md | 2 gadi atpakaļ | |
index.d.ts | 2 gadi atpakaļ | |
index.js | 2 gadi atpakaļ | |
package.json | 2 gadi atpakaļ |
Detect running environment of the current Node.js process.
Using Yarn:
yarn add std-env
Using npm:
npm i std-env
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
}
*/
MIT