Socket
Book a DemoInstallSign in
Socket

street-suffix

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

street-suffix

Expands and Abbreviates USPS Street Suffixes

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

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

Keywords

street

FAQs

Package last updated on 05 Feb 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.