track-my-parcel
v1.0.7
Published
Module to track a package
Downloads
7
Readme
track-package
Module to track packages from different carriers using only a tracking number. No account needed.
Supported carrier:
- UPS
- Fedex
Usage
npm install track-my-parcel
or
yarn add track-my-parcel
const tracker = require('track-my-parcel');
tracker.Track('SOME-TRACKING-NUMBER', (infos,err) => {
if(err){
console.error(err);
return;
}
console.log('GOT INFOS', infos);
});
Contribute
Contributions are more than welcome. The only rule is that every tracker should run without any sort of authentication.
This module is written in typescript.
To build the app run
yarn build
To run
node lib/index.js
Or build and run by launching
yarn start
Tests
TODO add tests
Deploy
npm version patch
npm publish
Many thanks to
Carl-Johan Kihl for showing the way on how to build and publish an NPM Typescript package