
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
filecompare
Advanced tools
Asynchronous file compare. Now using native Promises and native BufferTools (alloc and Buffer comparisons)
npm install --save filecompare
npm test
var fc = require('filecompare');
var cb = function(isEqual) {
console.log("equal? :" + isEqual);
}
fc(path1,path1,cb);
npm install -g filecompare
filecompare a.txt b.txt
var fc = require('filecompare');
var cb = function(isEqual) {
console.log("equal? :" + isEqual);
}
const readSize = 4096;
const bufferSize = 8192;
fc(path1,path1,cb,readSize, bufferSize);
Bytes are read into a small buffer, then compared.
Each step is independently asynchronous yet only steps forward after confirming buffers are identical.
This means if there is an unforseen process spike from some other processes, the file compare will exscuse itself until CPU load becomes more available. This means you can compare arbitrarily sized multi-gigabyte files all the time without worry about locking up the computer.
MIT
FAQs
asynchronous file compare
We found that filecompare 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.