random-access-stream

2.0.0 • Public • Published

random-access-stream

Consume a random-access storage as a readable stream.

Example

var Stream = require('random-access-stream')
var ram = require('random-access-memory')
 
var store = ram(Buffer('Hello cruel world'))
var stream = Stream(store)
stream.pipe(process.stdout)

API

Stream(store[, opts])

Options:

  • start=0 The byte offset at which to start reading
  • end=Infinity The byte offset at which to end reading

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    9
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    9
  • 1.1.0
    3
  • 1.0.0
    0

Package Sidebar

Install

npm i random-access-stream

Weekly Downloads

6

Version

2.0.0

License

MIT

Unpacked Size

3.45 kB

Total Files

4

Last publish

Collaborators

  • juliangruber
  • mafintosh