cotracking
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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: vilsonfcastilho@gmail.com

💼 License

cotracking is fully open and is under MIT license


Made with ♥ by Vilson Castilho

Package Sidebar

Install

npm i cotracking

Weekly Downloads

4

Version

1.0.6

License

MIT

Unpacked Size

26.8 kB

Total Files

25

Last publish

Collaborators

  • vilsonfcastilho