npm install x-rate --save
Use request and adhere to X-Rate-Limit headers.
X-Rate-Limit-Limit: 60
X-Rate-Limit-Remaining: 25
X-Rate-Limit-Reset: 8
var request = require('request');
var Xrate = require('x-rate');
var xRate = new Xrate(request, queueDoneCallback);
var req = xRate.getMethod();
for (var i = 0; i < 10; i++) {
req({ url: 'localhost' }, function (err, res, body) {
});
}