Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crc32-stream

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crc32-stream - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

3

lib/crc32-stream.js

@@ -15,3 +15,4 @@ /**

Transform.call(this, options);
this.checksum = 0;
this.checksum = new Buffer(4);
this.checksum.writeInt32BE(0, 0);
}

@@ -18,0 +19,0 @@

{
"name": "crc32-stream",
"version": "0.1.0",
"version": "0.1.1",
"description": "a streaming CRC32 checksumer",

@@ -32,3 +32,2 @@ "homepage": "https://github.com/ctalkington/node-crc32-stream",

"readable-stream": "~1.0.24",
"lodash.defaults": "~2.4.1",
"buffer-crc32": "~0.2.1"

@@ -38,5 +37,3 @@ },

"chai": "~1.8.1",
"mocha": "~1.16.0",
"rimraf": "~2.2.0",
"mkdirp": "~0.3.5"
"mocha": "~1.16.0"
},

@@ -43,0 +40,0 @@ "keywords": [

@@ -1,2 +0,2 @@

# crc32-stream v0.1.0 [![Build Status](https://travis-ci.org/ctalkington/node-crc32-stream.svg?branch=master)](https://travis-ci.org/ctalkington/node-crc32-stream)
# crc32-stream v0.1.1 [![Build Status](https://travis-ci.org/ctalkington/node-crc32-stream.svg?branch=master)](https://travis-ci.org/ctalkington/node-crc32-stream)

@@ -3,0 +3,0 @@ crc32-stream is a streaming CRC32 checksumer. It uses [buffer-crc32](https://www.npmjs.org/package/buffer-crc32) behind the scenes to reliably handle binary data and fancy character sets. Data is passed through untouched.

@@ -25,2 +25,15 @@ /*global before,describe,it */

});
it('should gracefully handle having no data chunks passed to it', function(done) {
var checksum = new CRC32Stream();
var deadend = new DeadEndStream();
checksum.on('end', function() {
assert.equal(checksum.digest(), 0);
done();
});
checksum.pipe(deadend);
checksum.end();
});
});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc