Socket
Book a DemoInstallSign in
Socket

random-access-stream

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-access-stream

Consume a random-access storage as a readable stream

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 29 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts