Gathering detailed insights and metrics for mos-read-pkg-up
Gathering detailed insights and metrics for mos-read-pkg-up
npm install mos-read-pkg-up
Typescript
Module System
Min. Node Version
Node Version
NPM Version
62.8
Supply Chain
92.7
Quality
73.4
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
38,333
Last Day
28
Last Week
36
Last Month
71
Last Year
2,193
7 Commits
2 Watching
3 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
mos-read-pkg-up@1.0.0
Size
2.48 kB
NPM Version
2.15.5
Node Version
4.4.5
Cumulative downloads
Total Downloads
Last day
0%
28
Compared to previous day
Last week
3,500%
36
Compared to previous week
Last month
10.9%
71
Compared to previous month
Last year
89.7%
2,193
Compared to previous year
2
Read the closest package.json file
This module is installed via npm:
1npm install mos-read-pkg-up --save
1const readPkgUp = require('mos-read-pkg-up'); 2 3readPkgUp().then(result => { 4 console.log(result); 5 //> { pkg: 6 // { name: 'mos-read-pkg-up', 7 // version: '1.0.2', 8 // description: 'Read the closest package.json file', 9 // license: 'MIT', 10 // repository: 11 // { type: 'git', 12 // url: 'git+ssh://git@github.com/zkochan/read-pkg-up.git' }, 13 // author: 14 // { name: 'Sindre Sorhus', 15 // email: 'sindresorhus@gmail.com', 16 // url: 'sindresorhus.com' }, 17 // engines: { node: '>=0.10.0' }, 18 // scripts: { test: 'xo && ava', md: 'mos' }, 19 // files: [ 'index.js' ], 20 // keywords: 21 // [ 'json', 22 // 'read', 23 // 'parse', 24 // 'file', 25 // 'fs', 26 // 'graceful', 27 // 'load', 28 // 'pkg', 29 // 'package', 30 // 'find', 31 // 'up', 32 // 'find-up', 33 // 'findup', 34 // 'look-up', 35 // 'look', 36 // 'file', 37 // 'search', 38 // 'match', 39 // 'package', 40 // 'resolve', 41 // 'parent', 42 // 'parents', 43 // 'folder', 44 // 'directory', 45 // 'dir', 46 // 'walk', 47 // 'walking', 48 // 'path' ], 49 // dependencies: { 'mos-read-pkg': '^1.1.2', 'find-up': '^1.0.0' }, 50 // devDependencies: { ava: '*', mos: '^0.16.0', xo: '*' }, 51 // bugs: { url: 'https://github.com/zkochan/read-pkg-up/issues' }, 52 // readme: 'ERROR: No README data found!', 53 // homepage: 'https://github.com/zkochan/read-pkg-up#readme', 54 // _id: 'mos-read-pkg-up@1.0.2' }, 55 // path: '/home/zoltan/src/read-pkg-up/package.json' } 56});
Returns a promise for the result object.
Returns a result object.
Type: string
Default: .
Directory to start looking for a package.json file.
Type: boolean
Default: true
Normalize the package data.
MIT © Sindre Sorhus
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
no SAST tool detected
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
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-01-27
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