#Sunat ruc scraper2
npm install sunat-ruc-scraper2
var scraper = require("sunat-ruc-scraper2");
scraper.getInformation("20131312955" , function ( err , data ) {
if ( err ) {
console.error(err);
}else{
//glhf
}
});
scraper.getInformation([ "20131312955" , "20601156530" ] , function ( err , data ) {
if ( err ) {
console.error(err);
}else{
//glhf
}
});
- scraper.getInformation(ruc,cb) => basic information
- scraper.getExtendedInformation(ruc,cb) => extended information
- Get history (TODO)
- Nodejs >= 0.12
npm test