GitShow/sindresorhus/is-npm
sindresorhus

is-npm

Check if your code is running as an npm or yarn script

by sindresorhus
Star on GitHubForknpm

JavaScript

66 stars9 forks8 contributorsQuiet · 9mo agoSince 2014v6.1.0MIT

Meet the team

See all 8 on GitHub →
sindresorhus
sindresorhus16 contributions
coreyfarrell
coreyfarrell1 contribution
BendingBender
BendingBender1 contribution
kevva
kevva1 contribution
mjswensen
mjswensen1 contribution
Richienb
Richienb1 contribution
ruyadorno
ruyadorno1 contribution

Languages

View on GitHub →
JavaScript96.8%
TypeScript3.2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
fjc0k
support pnpm?ClosedIssue

https://pnpm.js.org/

fjc0k · 9mo ago
lachlanhunt
Support detecting yarn 2ClosedIssue

Yarn 2 is sufficiently different from yarn 1.x that it's not always enough to know if yarn or npm is being used. I suggest adding an or similar value so that it can be reliably distinguished from yarn 1.x.

lachlanhunt · 9mo ago
jzeuzs
Update `yarn run` linkMergedPR
jzeuzs · 4y ago
Structured data for AI agents

Repository: sindresorhus/is-npm. Description: Check if your code is running as an npm or yarn script Stars: 66, Forks: 9. Primary language: JavaScript. Languages: JavaScript (96.8%), TypeScript (3.2%). License: MIT. Latest release: v6.1.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, coreyfarrell, BendingBender, kevva, mjswensen, Richienb, ruyadorno.

·@ofershap

Replace github.com with gitshow.dev