0.1.0 • Published 10 years ago

remote-convert-json v0.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

remote-convert-json

Convert multipule format of apis to json stream, support csv, xml, json to stream.

Example

var cvjson = require('remote-convert-json');
var fs = require('fs')
var ws = fs.createWriteStream('output');

// if the api is a csv, the module will parse csv to json stream magically
var cvjson = cvjson('http://localhost:3000/nonhead', {encoding: 'utf8'}, cb)
function cb(result) {
    console.log(result)
}

// pipe whereever you like :)
guess.pipe(ws);

Content-type support

  • application/json
  • text/xml
  • text/csv

License

MIT