Package Exports
- pull-reader
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pull-reader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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