
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
usps-webtools
Advanced tools
npm install usps-webtools
Initializing the usps model with usps server url address, and user id.
Example:
const USPS = require('usps-webtools');
const usps = new USPS({
server: 'http://production.shippingapis.com/ShippingAPI.dll',
userId: 'USPS User id',
ttl: 10000 //TTL in milliseconds for request
});
Verify takes two parameters: object and callback.
object: street1, street2, city, state, zip
callback: err, address
Example
usps.verify({
street1: '322 3rd st.',
street2: 'Apt 2',
city: 'San Francisco',
state: 'CA',
zip: '94103'
}, function(err, address) {
console.log(address);
});
zipCodeLookup takes two parameters: object and callback.
object: street1, street2, city, state
callback: err, address
Example
usps.zipCodeLookup({
street1: '322 3rd st.',
street2: 'Apt 2',
city: 'San Francisco',
state: 'CA'
}, function(err, address) {
console.log(address);
});
cityStateLookup takes two parameters: zipcode and callback.
zipcode: 5 digit zipcode
callback: err, address
Example
usps.cityStateLookup('94107', function(err, result) {
// result == { city: , state: , zip: }
});
FAQs
Api wrapper for the USPS Web-Tools
We found that usps-webtools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.