![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ts-shipment-tracking
Advanced tools
Unified shipment tracking data from FedEx, UPS, and USPS APIs.
Unified shipment tracking data from FedEx, UPS, and USPS APIs.
Returns a unified response from FedEx, UPS, and USPS tracking APIs. Supports development and production environments.
FedEx: Track API 1.0.0 (https://apis.fedex.com/track/v1)
UPS: Track API v1 (https://onlinetools.ups.com/api/track/v1)
USPS: Package Tracking and Notification 3.2.1 (https://api.usps.com/tracking/v3/tracking)
$ npm install ts-shipment-tracking
Courier API credentials are stored using dotenv. If you do not have dotenv installed:
$ npm install dotenv
Copy the contents of .env.template into your .env
file and fill it out.
Example input:
import "dotenv/config";
import { track, TrackingInfo } from "ts-shipment-tracking";
(async () => {
// With automatic courier detection
try {
const tragnostic: TrackingInfo = await track("<any_tracking_number>");
console.log(tragnostic);
} catch (err) {
console.log((err as Error).message);
}
// With explicitly specified courier
try {
const tracking: TrackingInfo = await track(
"<ups_tracking_number>",
// Supports autocomplete!
{ courierCode: "ups" }
);
console.log(tracking);
} catch (err) {
console.log((err as Error).message);
}
})();
Example output:
{
events: [
{
status: 'IN_TRANSIT',
label: 'Arrived at FedEx location',
location: 'LEBANON TN US 37090',
time: 1616823540000
},
...
],
estimatedDeliveryTime: 1616996340000
}
All statuses:
export enum TrackingStatus {
LABEL_CREATED = "LABEL_CREATED",
IN_TRANSIT = "IN_TRANSIT",
OUT_FOR_DELIVERY = "OUT_FOR_DELIVERY",
DELIVERY_ATTEMPTED = "DELIVERY_ATTEMPTED",
RETURNED_TO_SENDER = "RETURNED_TO_SENDER",
EXCEPTION = "EXCEPTION",
DELIVERED = "DELIVERED",
}
Thanks to @rjbrooksjr's TS Tracking Number module being used for tracking number validation and courier detection.
Thanks to @hautelook's Shipment Tracking repo used as a reference for some gaps in courier status codes as well as inspiration for architecture.
FAQs
Unified shipment tracking data from FedEx, UPS, and USPS APIs.
The npm package ts-shipment-tracking receives a total of 11 weekly downloads. As such, ts-shipment-tracking popularity was classified as not popular.
We found that ts-shipment-tracking demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.