Gathering detailed insights and metrics for has-yarn
Gathering detailed insights and metrics for has-yarn
Gathering detailed insights and metrics for has-yarn
Gathering detailed insights and metrics for has-yarn
npm install has-yarn
99.3
Supply Chain
72.8
Quality
75.3
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
100 Stars
16 Commits
7 Forks
8 Watching
1 Branches
5 Contributors
Updated on 12 Feb 2024
Minified
Minified + Gzipped
JavaScript (73.54%)
TypeScript (26.46%)
Cumulative downloads
Total Downloads
Last day
-12.2%
933,664
Compared to previous day
Last week
0.2%
5,689,844
Compared to previous week
Last month
14.4%
23,158,339
Compared to previous month
Last year
-11.6%
240,590,287
Compared to previous year
Check if a project is using Yarn
Useful for tools that needs to know whether to use yarn
or npm
to install dependencies.
It checks if a yarn.lock
file is present in the working directory.
$ npm install has-yarn
.
├── foo
│ └── package.json
└── bar
├── package.json
└── yarn.lock
1import hasYarn from 'has-yarn'; 2 3hasYarn('foo'); 4//=> false 5 6hasYarn('bar'); 7//=> true
Returns a boolean
of whether the project uses Yarn.
Type: string
Default: process.cwd()
The current working directory.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 5/16 approved changesets -- score normalized to 3
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
detected GitHub workflow tokens with excessive permissions
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-11-18
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