Gathering detailed insights and metrics for @guanghechen/npm-helper
Gathering detailed insights and metrics for @guanghechen/npm-helper
Gathering detailed insights and metrics for @guanghechen/npm-helper
Gathering detailed insights and metrics for @guanghechen/npm-helper
npm install @guanghechen/npm-helper
Typescript
Module System
Min. Node Version
Node Version
NPM Version
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
9,588
Last Day
2
Last Week
2
Last Month
67
Last Year
1,222
1 Stars
11 Commits
1 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.9.8
Package Id
@guanghechen/npm-helper@1.9.8
Unpacked Size
10.34 kB
Size
3.40 kB
File Count
7
NPM Version
lerna/5.1.8/node@v16.15.1+x64 (linux)
Node Version
16.15.1
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
-88.9%
2
Compared to previous week
Last month
179.2%
67
Compared to previous month
Last year
-30.9%
1,222
Compared to previous year
2
A collection of utility functions for npm packages.
npm
1npm install --save-dev @guanghechen/npm-helper
yarn
1yarn add --dev @guanghechen/npm-helper
detectMonorepo
: Check whether if it is a monorepo under the currentDir
.
1function detectMonorepo(currentDir: string): boolean
detectPackageAuthor
: Detect package author.
1function detectPackageAuthor(currentDir: string): string | null
createDependencyFields
: Return default dependency field names.
1function createDependencyFields(): ReadonlyArray< 2 |'dependencies' 3 |'optionalDependencies' 4 |'peerDependencies' 5>
collectAllDependencies
: Collect all dependencies declared in the
package.json
and the dependencies of them and so on.
1function collectAllDependencies( 2 packageJsonPath: string | null, 3 dependenciesFields?: ReadonlyArray<string>, 4 additionalDependencies?: ReadonlyArray<string> | null, 5 isAbsentAllowed?: ((moduleName: string) => boolean) | null, 6): string[]
packageJsonPath
: Filepath of package.json
dependenciesFields
: Package dependency field names. (such as
['dependencies', 'devDependencies']
)additionalDependencies
: Additional dependency names appended to the results.isAbsentAllowed
: Determine whether if a given moduleName can miss. (called
on MODULE_NOT_FOUND
error thrown)No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no SAST tool detected
Details
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
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-02-03
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