JSPM

street-suffix

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 559
  • Score
    100M100P100Q96375F
  • License MIT

Expands and Abbreviates USPS Street Suffixes

Package Exports

  • street-suffix

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (street-suffix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

street-suffix

Utility for expanding and abbreviating US street types from their many abbreviations.

Instaling

npm install --save street-suffix

Examples

Expanding Street Types

Expanding a street type abbreviation into it's full USPS suffix street-suffix

let suffix = require('street-suffix');

suffix.expand('st') // STREET
suffix.expand('ave') // AVENUE
suffix.expand('av') // AVENUE
suffix.expand('avenue'); // AVENUE

Abbreviating Street Types

Abbreviating a street type suffix or abbreviation into it's USPS standard abbreviation

let suffix = require('street-suffix');

suffix.abbreviate('street'); // ST
suffix.abbreviate('avenue'); // AVE
suffix.abbreviate('ave'); // AVE
suffix.abbreviate('av'); // AVE

This works for all standard USPS abbreviations