correios-tracker
v0.0.3
Published
A Brazilian National Post (Correios) tracker.
Downloads
2
Readme
Correios Tracker (Non Official)
This is a Brazilian National Post (Correios) tracker.
It makes a request in the official website, and parses the HTML into a javascript object.
Warning: It might break when Correios change their payload result.
Installation
npm install correios-tracker
Usage
const correiosTracker = require('correios-tracker');
correiosTracker('AA123456789BR')
.then(result => {
console.log(result);
})
.catch(error => {
console.error(error);
});
Response Payload
[
{
date: 'DD/MM/YYYY hh:mm',
location: 'CITY / STATE',
description: 'Detailed description'
}
]