1.0.4 • Published 7 years ago

us-street-abbreviations v1.0.4

Weekly downloads
7
License
ISC
Repository
github
Last release
7 years ago

US Street Abbreviations

Turns a US street address into a unique set of strings with various standard US postal street keywords abbreviated.

Installation:

npm install --save us-street-abbrevations

Usage:

const X = import * from 'us-street-abbreviations';
X.getVariants('123 North Northeast Street');

Set DEBUG environment variable to true to enable debugging messages.

Expected result:

{
  '123 north northeast street',
  '123 n northeast street',
  '123 n ne street',
  '123 n ne st',
  '123 north ne street',
  '123 north ne st',
  '123 north northeast st',
}

TODO:

  • Allow for expansions (exchange w/arrays swapped)
  • Write tests
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago