New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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 0.0.3 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",

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