cotracking
v1.0.6
Published
A JavaScript library with TypeScript support for tracking orders through Correios(BR)
Downloads
9
Maintainers
Readme
cotracking
A JavaScript library with TypeScript support for tracking orders through Correios(BR) 🚚
🚀 Getting started
$ npm install --save cotracking
# or
$ yarn add cotracking
👨🏻💻 Examples
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();
📎 Contributing
See how to contribute in CONTRIBUTING.md
Any questions or suggestions, send me a message: [email protected]
💼 License
cotracking is fully open and is under MIT license
Made with ♥ by Vilson Castilho