{"repo":"unjs/std-env","free":true,"listed":false,"github":"https://github.com/unjs/std-env","clone":"git clone https://github.com/unjs/std-env.git","description":"Runtime Agnostic Env Info","language":"TypeScript","stars":639,"topics":["node","environment","cli","std","tty","ci","console"],"license":"MIT","category":"cli-tools","readme_excerpt":"std-env Runtime-agnostic JS utils for detecting environments, runtimes, CI providers, and AI coding agents. Runtime Detection Detects the current JavaScript runtime based on global variables, following the WinterCG Runtime Keys proposal. Individual named exports: isNode , isBun , isDeno , isNetlify , isEdgeLight , isWorkerd , isFastly [!NOTE] isNode is also true in Bun/Deno with Node.js compatibility mode. Use runtime === \"node\" for strict checks. See ./src/runtimes.ts for the full list. Provider Detection Detects the current CI/CD provider based on environment variables. Use detectProvider() to re-run detection. See ./src/providers.ts for the full list. Agent Detection Detects if the environment is running inside an AI coding agent. Set the AI AGENT env var to explicitly specify the agent name. Use detectAgent() to re-run detection. Supported agents: cursor , claude , devin , replit , gemini , codex , auggie , opencode , kiro , goose , pi , junie Flags Export Description ------------------ ------------------------------------------------------------ hasTTY stdout TTY is available hasWindow Global window is available isCI Running in CI isColorSupported Terminal color output supported isDebug DEBUG env var is set isDevelopment NODE ENV is dev / development or MODE is development isLinux Linux platform isMacOS macOS (darwin) platform isMinimal MINIMAL env is set, CI, test, or no TTY isProduction NODE ENV or MODE is production isTest NODE ENV is test or TEST env is set isWindows","default_branch":null,"files":null,"tree":[],"storefront":"/r/unjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/unjs/std-env/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}