A JavaScript library with TypeScript support for tracking orders through Correios(BR) 🚚
$ npm install --save cotracking
# or
$ yarn add cotracking
Tracking a code with JavaScript:
const { cotracking } = require('cotracking');
const example = async () => {
const track = await cotracking.track('JT124720455BR');
console.log(track); //response -> Order{code: string, tracks: Track[]}
};
example();
Tracking many codes with TypeScript:
import cotracking from 'cotracking';
const example = async () => {
const track = await cotracking.track(['JT124720455BR', 'JT124720455BR']);
console.log(track); //response -> [Order{code: string, tracks: Track[]}]
};
example();
See how to contribute in CONTRIBUTING.md
Any questions or suggestions, send me a message: vilsonfcastilho@gmail.com
cotracking is fully open and is under MIT license
Made with ♥ by Vilson Castilho