Skip to content

dominictarr/pull-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published