chunked-buffer
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -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 @@ } |
{ | ||
"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", |
2219
19