remote-stream

0.1.1 • Public • Published

remote-stream

Streaming remote api

Install

npm install remote-stream

Example

var rsave = require('remote-save');
var fs = require('fs')
var ws = fs.createWriteStream('./output');


var rsave_cb = rsave("http://localhost:3000/csv", cb);

function cb(result, details) {
  console.log(result)
  console.log(details)
}

// pipe to next
rsave_cb.pipe(ws)

API

rsave(url, options, cb)

Parameters

License

MIT @chilijung

Readme

Keywords

Package Sidebar

Install

npm i remote-stream

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • chilijung