pull-reader
read bytes from a binary pull stream
Last updated 3 years ago by dominictarr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pull-reader 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.3.1                                ...           latest (3 years ago)

14 Versions

  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.9                                ...           4 years ago
  • 1.2.8                                ...           4 years ago
  • 1.2.7                                ...           4 years ago
  • 1.2.6                                ...           4 years ago
  • 1.2.5                                ...           5 years ago
  • 1.2.4                                ...           5 years ago
  • 1.2.3                                ...           5 years ago
  • 1.2.2                                ...           5 years ago
  • 1.1.2                                ...           5 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 18
This Month 34
Last Day 0
Last Week 5
Last Month 30
Dependencies (0)
None
Dev Dependencies (8)

Copyright 2014 - 2017 © taobao.org |