lhl 6ff0e96ad3 8-4-1 | il y a 1 an | |
---|---|---|
.. | ||
README.md | il y a 1 an | |
index.js | il y a 1 an | |
package.json | il y a 1 an |
Detect running environment of the current Node.js process.
Using yarn:
yarn add std-env
Usin 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