sindresorhus

environment

Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc

by sindresorhus

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
silverwind

Bun unfortunately masquerades as node in : Imho, should return false when is present. Alternatively, call out this problem in docs only.

silverwind · 2y ago
Zhang-Wei-666

判断当前是否在 CI 环境中运行 Determine whether it is currently running in a CI environment

Zhang-Wei-666 · 2y ago
Structured data for AI agents

Repository: sindresorhus/environment. Description: Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc Stars: 168, Forks: 1. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: check-environment, node-module, npm-package, runtime-environment. Latest release: v1.1.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus.