Socket
Socket
Sign inDemoInstall

stream-chunker

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-chunker - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

test/float.js

2

package.json
{
"name": "stream-chunker",
"version": "1.0.3",
"version": "1.0.4",
"description": "A transform stream which chunks incoming data into chunkSize byte chunks",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,3 +10,3 @@ var Chunker = require('../index.js');

function check(data) {
t.equals(data.toString('utf8'), '1234');
t.equals(data.toString('utf8'), '1234', 'Received only full chunks');
}

@@ -23,3 +23,3 @@ var chunker = Chunker(4);

function checkFlush(data) {
t.equals(data.toString('utf8'), '123456');
t.equals(data.toString('utf8'), '123456', 'Received flush data');
}

@@ -26,0 +26,0 @@ var chunkerFlush = Chunker(4, true);

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