Gathering detailed insights and metrics for is-npm
Gathering detailed insights and metrics for is-npm
Gathering detailed insights and metrics for is-npm
Gathering detailed insights and metrics for is-npm
Check if your code is running as an npm or yarn script
npm install is-npm
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.4
Supply Chain
82.2
Quality
75.4
Maintenance
100
Vulnerability
100
License
JavaScript (75.1%)
TypeScript (24.9%)
Total Downloads
2,280,163,544
Last Day
761,157
Last Week
6,050,748
Last Month
28,392,279
Last Year
331,142,465
64 Stars
21 Commits
10 Forks
6 Watching
1 Branches
8 Contributors
Minified
Minified + Gzipped
Latest Version
6.0.0
Package Id
is-npm@6.0.0
Size
1.99 kB
NPM Version
7.20.3
Node Version
16.9.1
Publised On
18 Sept 2021
Cumulative downloads
Total Downloads
Last day
-34.8%
761,157
Compared to previous day
Last week
-8.1%
6,050,748
Compared to previous week
Last month
-9.5%
28,392,279
Compared to previous month
Last year
-9.7%
331,142,465
Compared to previous year
1npm install is-npm
1import {isNpmOrYarn, isNpm, isYarn} from 'is-npm'; 2 3console.table({isNpmOrYarn, isNpm, isYarn});
1$ node foo.js 2# ┌─────────────┬────────┐ 3# │ (index) │ Values │ 4# ├─────────────┼────────┤ 5# │ isNpmOrYarn │ false │ 6# │ isNpm │ false │ 7# │ isYarn │ false │ 8# └─────────────┴────────┘ 9$ npm run foo 10# ┌─────────────┬────────┐ 11# │ (index) │ Values │ 12# ├─────────────┼────────┤ 13# │ isNpmOrYarn │ true │ 14# │ isNpm │ true │ 15# │ isYarn │ false │ 16# └─────────────┴────────┘ 17$ yarn run foo 18# ┌─────────────┬────────┐ 19# │ (index) │ Values │ 20# ├─────────────┼────────┤ 21# │ isNpmOrYarn │ true │ 22# │ isNpm │ false │ 23# │ isYarn │ true │ 24# └─────────────┴────────┘
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 7/21 approved changesets -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More