
Research
TeamPCP-Linked Supply Chain Attack Hits SAP CAP and Cloud MTA npm Packages
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.
crc32-stream
Advanced tools
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.
npm 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.
import { CRC32Stream } from "crc32-stream";
const source = fs.createReadStream("file.txt");
const checksum = new CRC32Stream();
checksum.on("end", function (err) {
// do something with checksum.digest() here
});
// either pipe it
source.pipe(checksum);
// or write it
checksum.write("string");
checksum.end();
Inherits zlib.DeflateRaw options and methods.
import { DeflateCRC32Stream } from "crc32-stream";
const source = fs.createReadStream("file.txt");
const checksum = new DeflateCRC32Stream();
checksum.on("end", function (err) {
// do something with checksum.digest() here
});
// either pipe it
source.pipe(checksum);
// or write it
checksum.write("string");
checksum.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)
The 'crc' package offers a collection of CRC (Cyclic Redundancy Check) algorithms for strings and buffers. Unlike crc32-stream, which is stream-focused, 'crc' provides a more general approach to CRC calculation, supporting various CRC algorithms but without native stream support.
This package is designed to validate streams using various hash algorithms, including CRC32. It is similar to crc32-stream in its stream-oriented approach but offers more flexibility by supporting additional hash algorithms like MD5 and SHA-1.
FAQs
a streaming CRC32 checksumer
The npm package crc32-stream receives a total of 16,113,313 weekly downloads. As such, crc32-stream popularity was classified as popular.
We found that crc32-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.