Gathering detailed insights and metrics for promise-json-file-reader
Gathering detailed insights and metrics for promise-json-file-reader
Gathering detailed insights and metrics for promise-json-file-reader
Gathering detailed insights and metrics for promise-json-file-reader
Read and parse a File Object with mimetype application/json in browser.
npm install promise-json-file-reader
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
4 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Dec 17, 2017
Latest Version
1.0.1
Package Id
promise-json-file-reader@1.0.1
Size
1.97 kB
NPM Version
5.5.1
Node Version
8.9.1
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
7
Read and parse a File Object with mimetype application/json in browser.
Tag <input>
with type="file"
let the user choose a file from file system, and the user can access the selected file with the File API.
$ npm install --save promise-json-file-reader
1import promiseJsonFileReader from 'promise-json-file-reader'; 2 3const file = document.querySelector('input[type=file]').files[0]; 4 5promiseJsonFileReader(file) 6 .then(data => console.log(data)) 7 .catch(err => console.error(err));
Copy file ./dist/promise-json-file-reader.js
in your project lib
directory.
1<script src="./lib/promise-json-file-reader.js"></script>
1const promiseJsonFileReader = window.promiseJsonFileReader; 2 3const file = document.querySelector('input[type=file]').files[0]; 4 5promiseJsonFileReader(file) 6 .then(data => console.log(data)) 7 .catch(err => console.error(err));
MIT © Riccardo Scalco
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
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
Reason
76 existing vulnerabilities detected
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