Grabby
Features
- request compatibility
- promise interface
- encoding detection(utf8, win1251)
- compressing detection(gzip, deflate)
- debug support
Install
npm install grabby --save
Nice and fancy
var grabby = ; // same as original node requestvar request = url: 'http://yandex.ru'; // returns Promisegrabby;
Advanced usage
var grabby = ; // set fail reason and grabby will continue to try// useful if you meet nginx with request per minute limitgrabby;
Debug support
Debug mode is provided through the use of the debug module. To enable:
DEBUG=grabby node your_program.js
or even in your script
// set debug environmentprocessenv'debug' = 'grabby';
Read the debug module documentation for more details.
Tests
npm test