Skip to content

Generate tracking URLs for packages shipped with common carriers.

License

Notifications You must be signed in to change notification settings

michaeljwilliams/tracking-url-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tracking-url-generator

Generate tracking URLs for packages shipped with common carriers, given carrier name and tracking number.

Example:

const tug = require("tracking-url-generator");

const trackingURL = tug("Canada Post", "000000000000000");
console.log(trackingURL);
"http//www.canadapost.ca/cpotools/apps/track/personal/findByTrackNumber?trackingNumber=000000000000000"

// Unsupported carrier
const anotherTrackingURL = tug("Royal Mail", "000000000000000");
console.log(anotherTrackingURL);
false // Carrier isn't supported in this package (yet)

Supported carriers:

  • USPS
  • UPS
  • FedEx
  • LaserShip
  • DHL US
  • DHL Global
  • OnTrac
  • Canada Post

About

Generate tracking URLs for packages shipped with common carriers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published