Skip to content

random-access-storage/random-access-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Consume a random-access storage as a readable stream.

Resources

Stars

Watchers

Forks

Packages

No packages published