std-env 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -2
  2. package/index.js +2 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -26,12 +26,13 @@ console.log(env)
26
26
  /*
27
27
  {
28
28
  test: false,
29
- dev: false,
29
+ dev: true,
30
30
  production: false,
31
31
  debug: false,
32
32
  ci: false,
33
33
  tty: true,
34
- minimalCLI: false
34
+ minimalCLI: false,
35
+ windows: false
35
36
  }
36
37
  */
37
38
  ```
package/index.js CHANGED
@@ -9,7 +9,8 @@ const env = {
9
9
  debug: Boolean(DEBUG),
10
10
  ci: Boolean(isCI),
11
11
  tty: Boolean(process.stdout.isTTY),
12
- minimalCLI: undefined
12
+ minimalCLI: undefined,
13
+ windows: /^win/.test(process.platform)
13
14
  }
14
15
 
15
16
  env.minimalCLI = env.ci || env.test || env.producion || !env.tty
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "std-env",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Detect running environment of the current Node.js process",
5
5
  "main": "index.js",
6
6
  "scripts": {