npm.io
1.1.0 • Published 11 years ago

xhr-stream

Licence
ISC
Version
1.1.0
Deps
0
Vulns
0
Weekly
0
Stars
12

xhr-stream

A node stream that wraps xhr GET requests as a stream.

usage

var XhrStream = require('xhr-stream')

var xhr = new XMLHttpRequest()
xhr.open('GET', '/some-large-docs.json', true)
var stream = new XhrStream( xhr )

stream.pipe(somewhereAwesome)

options

url

You can specify a url and an XHR will be created for you.

var stream = new XhrStream( url )
about

forked from node-buffered-xhr-stream

Keywords