async-buffered-reader
Read how many bytes you want from your readable stream when they are available
Last updated 11 years ago by daviddias .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install async-buffered-reader 
SYNC missed versions from official npm registry.

async-buffered-reader

Read how many bytes you want from your readable stream when they are available

Disclaimer: this module is incredible simple, however, it does solve having to write it over and over again :)

Usage

var read = require('async-buffered-reader')

read(yourOwnReadStream, 20, callback)

function callback (buffer) {
  // Only gets called when a buffer of 20 bytes is available 
}

Current Tags

  • 1.2.1                                ...           latest (11 years ago)

4 Versions

  • 1.2.1                                ...           11 years ago
  • 1.2.0                                ...           11 years ago
  • 1.1.0                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |