{"_id":"@balancer-team/usps-v3","_rev":"10-1bb8f34a9645c1f080963650d73c589f","name":"@balancer-team/usps-v3","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"@balancer-team/usps-v3","version":"0.0.1","author":{"name":"Alan Hettinger"},"license":"MIT","_id":"@balancer-team/usps-v3@0.0.1","maintainers":[{"name":"alanhett","email":"ahettinger@gmail.com"}],"homepage":"https://github.com/balancer-team/usps-v3-js#readme","bugs":{"url":"https://github.com/balancer-team/usps-v3-js/issues"},"dist":{"shasum":"e0d6da9b3539a20ccdd85df983a67580527b2bd3","tarball":"https://registry.npmjs.org/@balancer-team/usps-v3/-/usps-v3-0.0.1.tgz","fileCount":3,"integrity":"sha512-WGbmYMBmX6kqN8l5TBaCOb81El2fz2NwUVbil1LdktdYP6W9mauxtpwfrtaRh10hgNBTdYBklzzxbofjhkHNwg==","signatures":[{"sig":"MEYCIQCwinl1ruQhltkZ9BiHo6wwr2UAP/ERg4tFzkU5Jw1tbAIhAJ9KDQgrCRkEv/bNKcr6UNTNFp9G6b6ReKDsEKXmhXZS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1844},"main":"index.js","gitHead":"9e8729781c1763781537c36a933cd462cd949996","scripts":{"test":"node --require ts-node/register --test test/*.test.ts","build":"tsc"},"_npmUser":{"name":"alanhett","email":"ahettinger@gmail.com"},"repository":{"url":"git+https://github.com/balancer-team/usps-v3-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Library for interfacing with the USPS v3 API.","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/usps-v3_0.0.1_1746054594283_0.6076773972543259","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has moved to @nextform/usps-v3. Please update your dependencies."},"0.0.2":{"name":"@balancer-team/usps-v3","version":"0.0.2","author":{"name":"Alan Hettinger"},"license":"MIT","_id":"@balancer-team/usps-v3@0.0.2","maintainers":[{"name":"alanhett","email":"ahettinger@gmail.com"}],"homepage":"https://github.com/balancer-team/usps-v3-js#readme","bugs":{"url":"https://github.com/balancer-team/usps-v3-js/issues"},"dist":{"shasum":"52c965714965ad255c3b28951caa940f76b351d2","tarball":"https://registry.npmjs.org/@balancer-team/usps-v3/-/usps-v3-0.0.2.tgz","fileCount":3,"integrity":"sha512-Mdx2Gv8tJPAgGpq7wcs5Ws9IBW0LoZgFpfbcG3AqH+CzzibpGb4GMv4Kev5QDoCCloIK1Act1PBKeRlagTQ3Fg==","signatures":[{"sig":"MEUCIDSiUm/pOLpFl2yWepZgMDMMLmLOCqaqvaD3fuqGvcwaAiEAov8etj7AtvYM79Sr4KsLV8Sp+8NoNFDJ/jxy54txlrA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3942},"main":"index.js","gitHead":"cc4ec512542ea43048732ea9283476e7b3dd8edb","scripts":{"test":"node --require ts-node/register --test test/*.test.ts","build":"tsc"},"_npmUser":{"name":"alanhett","email":"ahettinger@gmail.com"},"repository":{"url":"git+https://github.com/balancer-team/usps-v3-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Library for interfacing with the USPS v3 API.","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/usps-v3_0.0.2_1746058724923_0.10580771601759076","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has moved to @nextform/usps-v3. Please update your dependencies."},"0.0.3":{"name":"@balancer-team/usps-v3","version":"0.0.3","keywords":["usps","v3","api","typescript","javascript"],"author":{"name":"Alan Hettinger"},"license":"MIT","_id":"@balancer-team/usps-v3@0.0.3","maintainers":[{"name":"alanhett","email":"ahettinger@gmail.com"}],"homepage":"https://github.com/balancer-team/usps-v3-js#readme","bugs":{"url":"https://github.com/balancer-team/usps-v3-js/issues"},"dist":{"shasum":"182f4952fce5c931a81576064c0442f3e91b6569","tarball":"https://registry.npmjs.org/@balancer-team/usps-v3/-/usps-v3-0.0.3.tgz","fileCount":7,"integrity":"sha512-mhmXbCAKsfknzYbbeSFbkjzLXq9g/pYZVrlyxWGf3Ixn/85NSd2gTZa+JNvH57dwzNCD1+JtIkV6zbh74FmbiA==","signatures":[{"sig":"MEQCIEego8yI8rpHGEalfStdmCtTbH7Er0qnvLylVQDHeusLAiASaesqE7XKWGkj4xeC1lE3puavCFExKGw5zfFvKl969g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11478},"main":"index.js","gitHead":"d4a0f0feb312b2095baae7703cb4fda39c271003","scripts":{"test":"node --require ts-node/register --test test/*.test.ts","build":"tsc"},"_npmUser":{"name":"alanhett","email":"ahettinger@gmail.com"},"repository":{"url":"git+https://github.com/balancer-team/usps-v3-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Library for interfacing with the USPS v3 API.","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/usps-v3_0.0.3_1746059390313_0.09341451244491972","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has moved to @nextform/usps-v3. Please update your dependencies."},"0.0.4":{"name":"@balancer-team/usps-v3","version":"0.0.4","keywords":["usps","v3","api","typescript","javascript"],"author":{"name":"Alan Hettinger"},"license":"MIT","_id":"@balancer-team/usps-v3@0.0.4","maintainers":[{"name":"alanhett","email":"ahettinger@gmail.com"}],"homepage":"https://github.com/balancer-team/usps-v3-js#readme","bugs":{"url":"https://github.com/balancer-team/usps-v3-js/issues"},"dist":{"shasum":"216a99806613b19a4b10b5ee69a23be91a6e4d96","tarball":"https://registry.npmjs.org/@balancer-team/usps-v3/-/usps-v3-0.0.4.tgz","fileCount":7,"integrity":"sha512-5bV2QY1/cFuBkDlUkhyguttUQAOs5rKtxWM6GhX5GaEIT9hB4eZUIEneOkQkKvzLxK6hpB0hMwd2t9qiyxQdOA==","signatures":[{"sig":"MEUCIQDFp5kwqbHSvF17zSbj3pwbS/vYYI/aqTlMpC1LR1Gb9QIgDPbMSzAx6eQJfN2VBww5DHyCz6rZxvb58BfY8z3jDR4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11485},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"3c02e83493b84f425ecb9a418e63676dc7081f4b","scripts":{"test":"node --require ts-node/register --test test/*.test.ts","build":"tsc"},"_npmUser":{"name":"alanhett","email":"ahettinger@gmail.com"},"repository":{"url":"git+https://github.com/balancer-team/usps-v3-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Library for interfacing with the USPS v3 API.","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/usps-v3_0.0.4_1746108588904_0.9790255017721401","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has moved to @nextform/usps-v3. Please update your dependencies."},"0.0.5":{"name":"@balancer-team/usps-v3","version":"0.0.5","keywords":["usps","v3","api","typescript","javascript"],"author":{"name":"Alan Hettinger"},"license":"MIT","_id":"@balancer-team/usps-v3@0.0.5","maintainers":[{"name":"alanhett","email":"ahettinger@gmail.com"}],"homepage":"https://github.com/balancer-team/usps-v3-js#readme","bugs":{"url":"https://github.com/balancer-team/usps-v3-js/issues"},"dist":{"shasum":"f70f87c285008d5b09bf7cf262534c3811ec956d","tarball":"https://registry.npmjs.org/@balancer-team/usps-v3/-/usps-v3-0.0.5.tgz","fileCount":7,"integrity":"sha512-XZED/hsYSx06XdXNOuRCzvifctYDwqpyO9UkNvkqneEyICBv9yAHHg5yWQFacb/Wr065pcBwW+jDWQ/oV5IFfA==","signatures":[{"sig":"MEYCIQDYugGzpmVuDH48pjxkvfQF1YiPSAnaupbnbixaMDy//wIhAPXyc/Y8OW9Un/hABrMzMYUsVhtRPqFQmToN5v6x7pMt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11461},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"d92ec17a5590c630edb8abb9fa984fa7d9183a50","scripts":{"test":"node --require ts-node/register --test test/*.test.ts","build":"tsc"},"_npmUser":{"name":"alanhett","email":"ahettinger@gmail.com"},"repository":{"url":"git+https://github.com/balancer-team/usps-v3-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Library for interfacing with the USPS v3 API.","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/usps-v3_0.0.5_1746108744820_0.5389932700465485","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has moved to @nextform/usps-v3. Please update your dependencies."},"0.0.6":{"name":"@balancer-team/usps-v3","version":"0.0.6","keywords":["usps","v3","api","typescript","javascript"],"author":{"name":"Alan Hettinger"},"license":"MIT","_id":"@balancer-team/usps-v3@0.0.6","maintainers":[{"name":"alanhett","email":"ahettinger@gmail.com"}],"homepage":"https://github.com/balancer-team/usps-v3-js#readme","bugs":{"url":"https://github.com/balancer-team/usps-v3-js/issues"},"dist":{"shasum":"c715f21ebc3b55d0c226212074f6f5abde2595bc","tarball":"https://registry.npmjs.org/@balancer-team/usps-v3/-/usps-v3-0.0.6.tgz","fileCount":7,"integrity":"sha512-GEVokcD9NlWngdFgscV0NRSzEswS44dYgeaAvv9QkgBLWWxSRON8+kvD3FwlkO1CqrCb5Skez3z/v4rFlG9ekA==","signatures":[{"sig":"MEUCIQDk/zX6WabFpiYnBttKlnCkYQV0JbDZuUdzyeQ5EXIspAIgbq5sEHKIscKwhWPhRznXl60Aab8NmfKqHnY7p7dO6Dg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8709},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"560892c04bdd2084f3da90467e01eaefbdbd8fe1","scripts":{"test":"node --require ts-node/register --test test/*.test.ts","build":"tsc"},"_npmUser":{"name":"alanhett","email":"ahettinger@gmail.com"},"repository":{"url":"git+https://github.com/balancer-team/usps-v3-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Library for interfacing with the USPS v3 API.","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/usps-v3_0.0.6_1746114190608_0.3833759892485691","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has moved to @nextform/usps-v3. Please update your dependencies."},"0.0.7":{"name":"@balancer-team/usps-v3","version":"0.0.7","keywords":["usps","v3","api","typescript","javascript"],"author":{"name":"Alan Hettinger"},"license":"MIT","_id":"@balancer-team/usps-v3@0.0.7","maintainers":[{"name":"alanhett","email":"ahettinger@gmail.com"}],"homepage":"https://github.com/balancer-team/usps-v3-js#readme","bugs":{"url":"https://github.com/balancer-team/usps-v3-js/issues"},"dist":{"shasum":"36f76d14e7bef9fed7380504fc50f64c06410bbd","tarball":"https://registry.npmjs.org/@balancer-team/usps-v3/-/usps-v3-0.0.7.tgz","fileCount":7,"integrity":"sha512-wdvZDWLm2OlVXv0ixleQzg+nwYq2JFhx9FlykiL6blpJtCrBFsgzRD2OeuKmf9h8zVtv6C9E769vZR0lFxHgJA==","signatures":[{"sig":"MEQCIEQeqBetPfG60RbNRXcMRwnZeSTV2uZlwoc4nLuAdiVhAiBBoOgKWdZxTlVOfGZ43D4dL091xuHqvqAkKgYOjIt9pQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8709},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"285270bdea627f9bb3626f5c408b192548891e46","scripts":{"test":"node --require ts-node/register --test test/*.test.ts","build":"tsc"},"_npmUser":{"name":"alanhett","email":"ahettinger@gmail.com"},"repository":{"url":"git+https://github.com/balancer-team/usps-v3-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Library for interfacing with the USPS v3 API.","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/usps-v3_0.0.7_1746114986853_0.3169824007623203","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has moved to @nextform/usps-v3. Please update your dependencies."},"0.0.8":{"name":"@balancer-team/usps-v3","version":"0.0.8","keywords":["usps","v3","api","typescript","javascript"],"author":{"name":"Alan Hettinger"},"license":"MIT","_id":"@balancer-team/usps-v3@0.0.8","maintainers":[{"name":"alanhett","email":"ahettinger@gmail.com"}],"homepage":"https://github.com/balancer-team/usps-v3-js#readme","bugs":{"url":"https://github.com/balancer-team/usps-v3-js/issues"},"dist":{"shasum":"87765e9701ef7aabfd4bd988e15f85a5d22f31f5","tarball":"https://registry.npmjs.org/@balancer-team/usps-v3/-/usps-v3-0.0.8.tgz","fileCount":7,"integrity":"sha512-V90t1YcdV/VBMNDfkQ9ozcfeYK9Swebaa26jBCe4abSoNvKnyDXCjH3Lz3dpLMT3h1iNxQetVx7ueXKu0HR8yw==","signatures":[{"sig":"MEYCIQDvckxGrBeLozJdFYJc12YROPtcOHixCzfis2rpRh/nqwIhAL44h/QeDOBq7mFSIaSiHwUoWqq+iWk6uzIjb2bDrsZN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9032},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"d0253970e222f82a547b342f66b467a3a079f729","scripts":{"test":"node --require ts-node/register --test test/*.test.ts","build":"tsc"},"_npmUser":{"name":"alanhett","email":"ahettinger@gmail.com"},"repository":{"url":"git+https://github.com/balancer-team/usps-v3-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Library for interfacing with the USPS v3 API.","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/usps-v3_0.0.8_1747527651923_0.9524951825677639","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has moved to @nextform/usps-v3. Please update your dependencies."},"0.0.9":{"name":"@balancer-team/usps-v3","version":"0.0.9","keywords":["usps","v3","api","typescript","javascript"],"author":{"name":"Alan Hettinger"},"license":"MIT","_id":"@balancer-team/usps-v3@0.0.9","maintainers":[{"name":"alanhett","email":"ahettinger@gmail.com"}],"homepage":"https://www.balancer.team","bugs":{"url":"https://github.com/balancer-team/usps-v3-js/issues"},"dist":{"shasum":"1b115a6baf09e0e54bb5a43a2fcc393860cca1a2","tarball":"https://registry.npmjs.org/@balancer-team/usps-v3/-/usps-v3-0.0.9.tgz","fileCount":7,"integrity":"sha512-gqeqir+xIE1oQaWGbImp5wXHBFF1zK1gYBhuN79hHW4jap88KVplzZ0OIX1X4lDSI8rGihHxgqSu1p8EVL7BBQ==","signatures":[{"sig":"MEUCIBHmrN+HwoeLZZRRjoB/eYNuS9QKWsBtRH8tYSK5dR76AiEAsMZVgFdjT7Iq1ebqBQvkNixuIHEXtv6kgbBJmIipVbU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8870},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"f31f664697e33b13ee6990bf1139e9fa751dccff","scripts":{"test":"node --require ts-node/register --test test/*.test.ts","build":"tsc"},"_npmUser":{"name":"alanhett","email":"ahettinger@gmail.com"},"repository":{"url":"git+https://github.com/balancer-team/usps-v3-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Library for interfacing with the USPS v3 API.","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","ts-node":"^10.9.2","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/usps-v3_0.0.9_1748546639867_0.9661420529280746","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has moved to @nextform/usps-v3. Please update your dependencies."}},"time":{"created":"2025-04-30T23:09:54.155Z","modified":"2026-04-30T19:54:50.059Z","0.0.1":"2025-04-30T23:09:54.460Z","0.0.2":"2025-05-01T00:18:45.072Z","0.0.3":"2025-05-01T00:29:50.496Z","0.0.4":"2025-05-01T14:09:49.117Z","0.0.5":"2025-05-01T14:12:25.054Z","0.0.6":"2025-05-01T15:43:10.848Z","0.0.7":"2025-05-01T15:56:27.048Z","0.0.8":"2025-05-18T00:20:52.100Z","0.0.9":"2025-05-29T19:24:00.090Z"},"bugs":{"url":"https://github.com/balancer-team/usps-v3-js/issues"},"author":{"name":"Alan Hettinger"},"license":"MIT","homepage":"https://www.balancer.team","keywords":["usps","v3","api","typescript","javascript"],"repository":{"url":"git+https://github.com/balancer-team/usps-v3-js.git","type":"git"},"description":"Library for interfacing with the USPS v3 API.","maintainers":[{"name":"alanhett","email":"ahettinger@gmail.com"}],"readme":"# USPS v3 API JavaScript Library\n\nLibrary for interfacing with the USPS v3 API. The USPS v3 API replaces the legacy Web Tools API.\n\n### Installation\n\n```bash\nnpm i @balancer-team/usps-v3\n```\n\n### Usage\n\nImport and configure the library\n\n```javascript\nimport { USPS } from '@balancer-team/usps-v3'\n\nconst usps = new USPS({\n  clientId: USPS_CLIENT_ID,\n  clientSecret: USPS_CLIENT_SECRET,\n})\n```\n\nValidate an address\n\n```javascript\nconst data = await usps.getAddress({\n  streetAddress: '302 Riverside Drive',\n  city: 'Melbourne Beach',\n  state: 'FL',\n})\n\n// Response:\n//\n// {\n//   firm: '',\n//   address: {\n//     streetAddress: '302 RIVERSIDE DR',\n//     streetAddressAbbreviation: '302 RIVERSIDE DR',\n//     secondaryAddress: '',\n//     cityAbbreviation: 'MELBOURNE BCH',\n//     city: 'MELBOURNE BCH',\n//     state: 'FL',\n//     ZIPCode: '32951',\n//     ZIPPlus4: '2142',\n//     urbanization: ''\n//   },\n//   additionalInfo: {\n//     deliveryPoint: '02',\n//     carrierRoute: 'C001',\n//     DPVConfirmation: 'Y',\n//     DPVCMRA: 'N',\n//     business: 'N',\n//     centralDeliveryPoint: 'N',\n//     vacant: 'N'\n//   },\n//   corrections: [ { code: '', text: '' } ],\n//   matches: [ { code: '31', text: 'Single Response - exact match' } ]\n// }\n```\n\nLook up a city/state by ZIP code\n\n```javascript\nconst data = await usps.getCityState({\n  ZIPCode: '90210',\n})\n\n// Response:\n//\n// {\n//    city: 'BEVERLY HILLS',\n//    state: 'CA',\n//    ZIPCode: '90210'\n// }\n```\n\n### Title Case Conversion\n\nThe USPS v3 API returns all caps for address fields by default. This library can automatically convert the fields to a more human-readable title case if desired. To enable this feature, set the `useTitleCase` option to `true` when creating the USPS instance.\n\n```javascript\nconst usps = new USPS({\n  clientId: USPS_CLIENT_ID,\n  clientSecret: USPS_CLIENT_SECRET,\n  useTitleCase: true,\n})\n\nconst data = await usps.getAddress({\n  streetAddress: '302 Riverside Drive',\n  city: 'Melbourne Beach',\n  state: 'FL',\n})\n\n// Response:\n//\n// {\n//   firm: '',\n//   address: {\n//     streetAddress: '302 Riverside Dr',\n//     ...\n\nconst data = await usps.getCityState({\n  ZIPCode: '90210',\n})\n\n// Response:\n//\n// {\n//    city: 'Beverly Hills',\n//    ...\n```\n","readmeFilename":"README.md"}