usps
v3.0.0
Published
CLI tool to validate USPS addresses
Readme
USPS Address Validator CLI
A command-line tool to validate USPS addresses using the USPS Address Validation API.
Setup
- Get your USPS API credentials (Client ID and Client Secret)
- Set up your environment variables:
export USPS_CLIENT_ID=your_client_id export USPS_CLIENT_SECRET=your_client_secret
Usage
Login
First, you need to authenticate with the USPS API:
npx usps loginValidate Address
To validate an address:
npx usps validate "123 Main St,New York,NY,10001"The address should be provided in the format: "street,city,state,zip"
License
MIT
