GitShow/sindresorhus/environment
sindresorhus

environment

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

by sindresorhus
check-environmentnode-modulenpm-packageruntime-environment
Star on GitHubForknpm

JavaScript

167 stars1 forks1 contributorQuiet · 1y agoSince 2024MIT

Meet the team

See all 1 on GitHub →
sindresorhus
sindresorhus5 contributions

Recent fixes

View closed PRs →
silverwind
`isNode()` should not be true for bunClosedIssue

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
Feature Request - isCIClosedIssue

判断当前是否在 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: 167, Forks: 1. Primary language: JavaScript. License: MIT. Topics: check-environment, node-module, npm-package, runtime-environment. Open PRs: 0, open issues: 0. Last activity: 1y ago. Top contributors: sindresorhus.

·@ofershap

Replace github.com with gitshow.dev