@@ -32,7 +32,7 @@ Detects the current CI/CD provider based on environment variables.
3232import { isCI , provider , providerInfo } from " std-env" ;
3333
3434console .log ({ isCI , provider , providerInfo });
35- // { isCI: true, provider: "github_actions", providerInfo: { name: "github_actions", isCI : true } }
35+ // { isCI: true, provider: "github_actions", providerInfo: { name: "github_actions", ci : true } }
3636```
3737
3838Use ` detectProvider() ` to re-run detection. See [ ./src/providers.ts] ( ./src/providers.ts ) for the full list.
@@ -58,32 +58,33 @@ Supported agents: `cursor`, `claude`, `devin`, `replit`, `gemini`, `codex`, `aug
5858import { env , isDevelopment , isProduction } from " std-env" ;
5959```
6060
61- | Export | Description |
62- | ------------------ | ----------------------------------------- |
63- | ` hasTTY ` | stdout TTY is available |
64- | ` hasWindow ` | Global ` window ` is available |
65- | ` isCI ` | Running in CI |
66- | ` isColorSupported ` | Terminal color output supported |
67- | ` isDebug ` | ` DEBUG ` env var is set |
68- | ` isDevelopment ` | ` NODE_ENV ` is ` dev ` or ` development ` |
69- | ` isLinux ` | Linux platform |
70- | ` isMacOS ` | macOS (darwin) platform |
71- | ` isMinimal ` | Minimal environment ( CI, test, or no TTY) |
72- | ` isProduction ` | ` NODE_ENV ` is ` production ` |
73- | ` isTest ` | ` NODE_ENV ` is ` test ` |
74- | ` isWindows ` | Windows platform |
75- | ` platform ` | Value of ` process.platform ` |
76- | ` nodeVersion ` | Node.js version string (e.g. ` "22.0.0" ` ) |
77- | ` nodeMajorVersion ` | Node.js major version number (e.g. ` 22 ` ) |
61+ | Export | Description |
62+ | ------------------ | ------------------------------------------------------------ |
63+ | ` hasTTY ` | stdout TTY is available |
64+ | ` hasWindow ` | Global ` window ` is available |
65+ | ` isCI ` | Running in CI |
66+ | ` isColorSupported ` | Terminal color output supported |
67+ | ` isDebug ` | ` DEBUG ` env var is set |
68+ | ` isDevelopment ` | ` NODE_ENV ` is ` dev ` / ` development ` or ` MODE ` is ` development ` |
69+ | ` isLinux ` | Linux platform |
70+ | ` isMacOS ` | macOS (darwin) platform |
71+ | ` isMinimal ` | ` MINIMAL ` env is set, CI, test, or no TTY |
72+ | ` isProduction ` | ` NODE_ENV ` or ` MODE ` is ` production ` |
73+ | ` isTest ` | ` NODE_ENV ` is ` test ` or ` TEST ` env is set |
74+ | ` isWindows ` | Windows platform |
75+ | ` platform ` | Value of ` process.platform ` |
76+ | ` nodeVersion ` | Node.js version string (e.g. ` "22.0.0" ` ) |
77+ | ` nodeMajorVersion ` | Node.js major version number (e.g. ` 22 ` ) |
7878
7979See [ ./src/flags.ts] ( ./src/flags.ts ) for details.
8080
8181## Environment
8282
83- | Export | Description |
84- | --------- | --------------------------------------------------- |
85- | ` env ` | Universal ` process.env ` (works across all runtimes) |
86- | ` nodeENV ` | Current ` NODE_ENV ` value (undefined if unset) |
83+ | Export | Description |
84+ | --------- | ---------------------------------------------------- |
85+ | ` env ` | Universal ` process.env ` (works across all runtimes) |
86+ | ` process ` | Universal ` process ` shim (works across all runtimes) |
87+ | ` nodeENV ` | Current ` NODE_ENV ` value (undefined if unset) |
8788
8889## License
8990
0 commit comments