Gathering detailed insights and metrics for toab
Gathering detailed insights and metrics for toab
Gathering detailed insights and metrics for toab
Gathering detailed insights and metrics for toab
npm install toab
67
Supply Chain
86.1
Quality
75.8
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
26 Commits
3 Watching
1 Branches
1 Contributors
Updated on 11 Nov 2021
Minified
Minified + Gzipped
JavaScript (72.1%)
HTML (27.9%)
Cumulative downloads
Total Downloads
Last day
-13.2%
66
Compared to previous day
Last week
-4.5%
170
Compared to previous week
Last month
-48.2%
763
Compared to previous month
Last year
598.3%
8,875
Compared to previous year
2
To Array Buffer: Convert Buffer, Data URLs, Files, Response, Text, and Typed Arrays to Array Buffers
1npm install toab
1const fs = require("fs"); 2const toab = require("toab"); 3 4const buffer = fs.readFileSync("test.png"); 5const arrayBuffer = await toab(buffer);
1document.querySelector('input').addEventListener('change', async event => { 2 const file = event.target.files[0]; 3 const arrayBuffer = await toab(file); 4});
1// the context comes from a canvas element 2const url = context.toDataURL('image/jpeg'); 3// url is data:image/jpeg;base64,/9j/4AAQSkZJRgABA" 4const arrayBuffer = await toab(url);
1const arrayBuffer = await toab(dataView)
1const arrayBuffer = await toab(int8Array) 2const arrayBuffer = await toab(uint8Array) 3const arrayBuffer = await toab(int16Array) 4const arrayBuffer = await toab(uint16Array) 5const arrayBuffer = await toab(int32Array) 6const arrayBuffer = await toab(uint32Array) 7const arrayBuffer = await toab(float32Array) 8const arrayBuffer = await toab(float64Array) 9const arrayBuffer = await toab(bigInt64Array) 10const arrayBuffer = await toab(bigUint64Array)
1const arrayBuffer = await toab("Hello, I'm a String.");
1const response = await fetch("https://example.org/file.dat"); 2const arrayBuffer = await toab(response); 3 4// or for a one-line solution 5const arrayBuffer = await fetch("https://example.org/file.dat").then(toab);
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/26 approved changesets -- 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
Score
Last Scanned on 2024-11-25
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