2.0.0 • Published 6 years ago
random-access-stream v2.0.0
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 readingend=Infinity
The byte offset at which to end reading
License
MIT