1.0.1 • Published 5 years ago

street-suffix v1.0.1

Weekly downloads
1,981
License
MIT
Repository
github
Last release
5 years ago

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