Gathering detailed insights and metrics for promisify-file-reader
Gathering detailed insights and metrics for promisify-file-reader
Gathering detailed insights and metrics for promisify-file-reader
Gathering detailed insights and metrics for promisify-file-reader
npm install promisify-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
8 Stars
1,487 Commits
2 Watchers
63 Branches
2 Contributors
Updated on Mar 07, 2023
Latest Version
4.1.0
Package Id
promisify-file-reader@4.1.0
Unpacked Size
40.97 kB
Size
7.43 kB
File Count
13
NPM Version
7.9.0
Node Version
16.5.0
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
27
1<script src="https://unpkg.com/promisify-file-reader"></script>
1<script type="module"> 2 import PromisifyFileReader from 'https://unpkg.com/promisify-file-reader?module' 3</script>
1dist/ 2├─ index.cjs ( CommonJS ) 3├─ index.js ( UMD ) 4├─ index.min.js ( UMD, compressed ) 5├─ index.mjs ( ES Module ) 6└─ index.min.mjs ( ES Module, compressed )
supported all FileReader
methods:
readAsArrayBuffer
readAsBinaryString
readAsDataURL
readAsText
FileReader#readAsBinaryString
is not available in some browser, like IE 10we use arrayBuffer to binaryString to support this method
example:
1const fileReader = new PromisifyFileReader() 2const result = await fileReader.readAsArrayBuffer(file)
in fact new PromisifyFileReader()
is not really required, all methods can use as static
readAsArrayBuffer
readAsBinaryString
readAsDataURL
readAsText
example:
1const result = await PromisifyFileReader.readAsArrayBuffer(file)
you can also strip the readAs
prefix
arrayBuffer
binaryString
dataURL
text
Notice: shortcuts are NOT available in prototype
example:
1const result = await PromisifyFileReader.arrayBuffer(file)
2// => same as readAsArrayBuffer
the ES Module build exports
1{ 2 // default 3 PromisifyFileReader as default, 4 5 // named 6 arrayBuffer, 7 binaryString, 8 dataURL, 9 text, 10 readAsArrayBuffer, 11 readAsBinaryString, 12 readAsDataURL, 13 readAsText, 14}
import example:
1// import default 2import PromisifyFileReader from 'promisify-file-reader' 3 4// import named 5import { 6 arrayBuffer, 7 // ... 8} from 'promisify-file-reader' 9 10// import both 11import PromisifyFileReader, { 12 arrayBuffer, 13 // ... 14} from 'promisify-file-reader'
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
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-07-14
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