🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

chunked-buffer

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chunked-buffer - npm Package Compare versions

Comparing version

to
0.0.4

8

index.js

@@ -6,9 +6,2 @@ const EventEmitter = require('events').EventEmitter

super()
this.readStream = readStream
this.opts = opts
this.bindEvents()
}
bindEvents () {
const { readStream, opts } = this
readStream.on('data', buffer => {

@@ -24,3 +17,2 @@ for (let start = 0;start < buffer.byteLength;start+=opts.chunkSize) {

readStream.on('resume', () => this.emit('resume'))
readStream.on('readable', () => this.emit('readable'))
readStream.on('error', (err) => this.emit('error', err))

@@ -27,0 +19,0 @@ }

2

package.json
{
"name": "chunked-buffer",
"version": "0.0.3",
"version": "0.0.4",
"description": "Small function you can wrap fs.createReadStream with to get fixed size data chunks",

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