Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
consignment-tracker
Advanced tools
Readme
This is a NodeJS module to simplify the process of tracking consignments. Tracking numbers are magically resolved, and results will always be in a uniform format. Currently supports UPS, Yodel & Truline in the United Kingdom.
npm i consignment-tracker
const config = {
ups: { // UPS config (required for UPS tracking only)
user: "xxxx", // UPS username
pass: "xxxx", // UPS password
access: "xxxx" // UPS Access License Number
},
truline: { // Truline config (require for Truline tracking only)
account: "00000"
}
};
const track = require('consignment-tracker')(config);
let result = await track('XXXXXXXXXXXXXXXX');
let results = await track([
'1111111111111',
'2222222222222',
'3333333333333'
]);
Track a single consignment
let result = await track(reference);
Track a batch of consignments
let results = await track([ref1, ref2, ref3]);
Track a single consignment and request full tracking history.
let result = await track(reference, {history: true});
track()
will throw an error if there is a failure performing the tracking.track()
, it will not throw. Instead, each individual error in the batch will be returned in the results along with the corresponding tracking reference.D
: DeliveredI
: In TransitX
: Exception (failure in the delivery process, e.g. address not found)M
: Manifested (parcel not yet handed to the courier){
courier: {type:"string"},
service: {type:"string"},
tracking_ref: {type:"string"},
consignment_ref: {type:"string"},
parcel_ref: {type:"string"},
po_number: {type:"string"},
dest_postal_code: {type:"string"},
dest_country_code: {type:"string"},
status_code: {type:"string", enum:["D", "I", "X", "M"]},
description: {type:"string"},
location: {type:"string"},
pod_signatory: {type:"string"},
pod_image_url: {type:"string"},
date: {type:"date"},
comments: {type:"string"},
history: [
{
status_code: {type:"string", enum:["D", "I", "X", "M"]},
description: {type:"string"},
location: {type:"string"},
pod_signatory: {type:"string"},
pod_image_url: {type:"string"},
date: {type:"date"},
comments: {type:"string"}
}
]
}
FAQs
A unified consignment tracker
The npm package consignment-tracker receives a total of 10 weekly downloads. As such, consignment-tracker popularity was classified as not popular.
We found that consignment-tracker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.