PATH:
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
needle
/
examples
var fs = require('fs'), stream = require('stream'), needle = require('./../'); var url = 'http://ibl.gamechaser.net/f/tagqfxtteucbuldhezkz/bt_level1.gz'; var resp = needle.get(url, { compressed: true, follow_max: 10 }); console.log('Downloading...'); resp.on('readable', function() { while (data = this.read()) { var lines = data.toString().split('\n'); console.log('Got ' + lines.length + ' items.'); // console.log(lines); } }) resp.on('done', function(data) { console.log('Done'); })
[-] parsed-stream2.js
[edit]
[-] digest-auth.js
[edit]
[+]
..
[-] stream-events.js
[edit]
[-] deflated-stream.js
[edit]
[-] download-to-file.js
[edit]
[-] multipart-stream.js
[edit]
[-] upload-image.js
[edit]
[-] parsed-stream.js
[edit]
[-] stream-to-file.js
[edit]