Gathering detailed insights and metrics for load-json-file
Gathering detailed insights and metrics for load-json-file
Gathering detailed insights and metrics for load-json-file
Gathering detailed insights and metrics for load-json-file
npm install load-json-file
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.8
Supply Chain
81.9
Quality
75.8
Maintenance
100
Vulnerability
100
License
JavaScript (77.88%)
TypeScript (22.12%)
Total Downloads
7,813,151,290
Last Day
1,447,825
Last Week
21,660,432
Last Month
94,110,126
Last Year
974,164,615
MIT License
246 Stars
47 Commits
47 Forks
7 Watchers
1 Branches
15 Contributors
Updated on Apr 25, 2025
Minified
Minified + Gzipped
Latest Version
7.0.1
Package Id
load-json-file@7.0.1
Size
2.40 kB
NPM Version
7.20.3
Node Version
12.22.1
Published on
Sep 13, 2021
Cumulative downloads
Total Downloads
Last Day
-14.4%
1,447,825
Compared to previous day
Last Week
-8.8%
21,660,432
Compared to previous week
Last Month
7.5%
94,110,126
Compared to previous month
Last Year
-6.3%
974,164,615
Compared to previous year
Read and parse a JSON file
It also strips UTF-8 BOM.
$ npm install load-json-file
1import {loadJsonFile} from 'load-json-file'; 2 3console.log(await loadJsonFile('foo.json')); 4//=> {foo: true}
Returns a Promise<unknown>
with the parsed JSON.
Returns the parsed JSON.
Type: object
Type: Function
Applies a function to the JSON string before parsing.
Type: Function
Prescribes how the value originally produced by parsing is transformed, before being returned. See the JSON.parse
docs for more.
Available as part of the Tidelift Subscription.
The maintainers of load-json-file and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.
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 10/30 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
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
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 2025-06-23
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