Socket
Socket
Sign inDemoInstall

pull-reader

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pull-reader

read bytes from a binary pull stream


Version published
Weekly downloads
526
increased by16.37%
Maintainers
1
Install size
16.5 kB
Created
Weekly downloads
 

Readme

Source

pull-reader

read bytes from a binary pull-stream

example

var Reader = require('pull-reader')
var File = require('pull-file')
var reader = Reader(1000) //1 second timeout, abort upstream if read takes longer than this.


pull(
  File('./package.json'),
  reader
)

//read the first byte of a file
reader.read(1, function (err, data) {
  console.log(data.toString()) // => {
})

License

MIT

FAQs

Last updated on 08 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc