Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| var http = require('http'); | |
| var qs = require('querystring'); | |
| function parse_response(res, callback) { | |
| var list = []; | |
| res.on('data', function(chunk) { | |
| list.push(chunk); | |
| }); | |
| res.on('end', function() { | |
| callback(Buffer.concat(list).toString()); |
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| var fs = require('fs'), | |
| util = require('util'), | |
| Stream = require('stream').Stream; | |
| /** | |
| * Create a bandwidth limited stream | |
| * | |
| * This is a read+writeable stream that can limit how fast it | |
| * is written onto by emitting pause and resume events to | |
| * maintain a specified bandwidth limit, that limit can |