![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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
The npm package usps-webtools receives a total of 1,264 weekly downloads. As such, usps-webtools popularity was classified as popular.
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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.