1.0.6 • Published 3 years ago

cotracking v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago