Gathering detailed insights and metrics for crc32-stream
Gathering detailed insights and metrics for crc32-stream
Gathering detailed insights and metrics for crc32-stream
Gathering detailed insights and metrics for crc32-stream
a streaming CRC32 checksumer (now with deflate support)
npm install crc32-stream
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
32 Stars
159 Commits
13 Forks
5 Watching
6 Branches
8 Contributors
Updated on 16 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-4%
1,813,365
Compared to previous day
Last week
2.9%
10,193,080
Compared to previous week
Last month
6.3%
42,544,118
Compared to previous month
Last year
33.5%
442,034,238
Compared to previous year
2
crc32-stream is a streaming CRC32 checksumer. It uses the crc module behind the scenes to reliably handle binary data and fancy character sets. Data is passed through untouched.
1npm install crc32-stream --save
You can also use npm install https://github.com/archiverjs/node-crc32-stream/archive/master.tar.gz
to test upcoming versions.
Inherits Transform Stream options and methods.
1import { CRC32Stream } from "crc32-stream"; 2 3const source = fs.createReadStream("file.txt"); 4const checksum = new CRC32Stream(); 5 6checksum.on("end", function (err) { 7 // do something with checksum.digest() here 8}); 9 10// either pipe it 11source.pipe(checksum); 12 13// or write it 14checksum.write("string"); 15checksum.end();
Inherits zlib.DeflateRaw options and methods.
1import { DeflateCRC32Stream } from "crc32-stream"; 2 3const source = fs.createReadStream("file.txt"); 4const checksum = new DeflateCRC32Stream(); 5 6checksum.on("end", function (err) { 7 // do something with checksum.digest() here 8}); 9 10// either pipe it 11source.pipe(checksum); 12 13// or write it 14checksum.write("string"); 15checksum.end();
Returns the checksum digest in unsigned form.
Returns the hexadecimal representation of the checksum digest. (ie E81722F0)
Returns the raw size/length of passed-through data.
If compressed
is true
, it returns compressed length instead. (DeflateCRC32Stream)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
16 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
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
SAST tool is not run on all commits -- score normalized to 0
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