Gathering detailed insights and metrics for parse-packagejson-name
Gathering detailed insights and metrics for parse-packagejson-name
Gathering detailed insights and metrics for parse-packagejson-name
Gathering detailed insights and metrics for parse-packagejson-name
Parse an npm package name and returns some mildly interesting details about it
npm install parse-packagejson-name
Typescript
Module System
Node Version
NPM Version
94
Supply Chain
71
Quality
75.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
9 Commits
1 Forks
2 Watchers
9 Branches
3 Contributors
Updated on Oct 02, 2018
Latest Version
1.0.1
Package Id
parse-packagejson-name@1.0.1
Size
1.24 kB
NPM Version
2.14.9
Node Version
0.12.9
Published on
Dec 14, 2015
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
A very simple package to parse an npm package name and return some mildly interesting details about the name. It gives you back the following properties:
@foo/blip.blop
's scope is 'foo'
@foo/blip.blop
's fullName is 'blip.blop'
.
character in the fullName, then this can denote the module is part of a larger project, for example lodash
has modules like lodash.pluck
. Given the @foo/blip.blop
example, projectName would be 'blip'
@foo/blip.blop
, moduleName would be 'blop'
.1var parsePackageJsonName = require('parsePackageJsonName'); 2 3parsePackageJsonName('@foo/blip.blop').should.deep.equal({ 4 scope: 'foo', 5 fullName: 'blip.blop', 6 projectName: 'blip', 7 moduleName: 'blop', 8}); 9 10parsePackageJsonName('blip.blop').should.deep.equal({ 11 scope: null, 12 fullName: 'blip.blop', 13 projectName: 'blip', 14 moduleName: 'blop', 15}); 16 17parsePackageJsonName('blop').should.deep.equal({ 18 scope: null, 19 fullName: 'blop', 20 projectName: null, 21 moduleName: 'blop', 22}); 23 24parsePackageJsonName(require('lodash.pluck/package.json')).should.deep.equal({ 25 scope: null, 26 fullName: 'lodash.pluck', 27 projectName: 'lodash', 28 moduleName: 'pluck', 29});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 2/8 approved changesets -- score normalized to 2
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
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
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