You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
645 B
49 lines
645 B
# std-env
|
|
|
|
[](http://npmjs.com/package/std-env)
|
|
[](http://npmjs.com/package/std-env)
|
|
|
|
Detect running environment of the current Node.js process.
|
|
|
|
## Installation
|
|
|
|
Using yarn:
|
|
|
|
```
|
|
yarn add std-env
|
|
```
|
|
|
|
Usin npm:
|
|
|
|
```
|
|
npm i std-env
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
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
|