1.0.7 • Published 7 years ago
track-my-parcel v1.0.7
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-parcelor
yarn add track-my-parcelconst 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 buildTo run
node lib/index.jsOr build and run by launching
yarn startTests
TODO add tests
Deploy
npm version patchnpm publishMany thanks to
Carl-Johan Kihl for showing the way on how to build and publish an NPM Typescript package