0.8.0 • Published 3 years ago

usps-abbreviations v0.8.0

Weekly downloads
23
License
ISC
Repository
github
Last release
3 years ago

USPS Abbreviations

Simple utility to transform USPS abbreviations to their full form.

Abbreviations from http://www.gis.co.clay.mn.us/usps.htm

Usage

var USPS = require('usps-abbreviations');

var transformed = USPS.transformText("123 N Main St, Chicago, IL 60610");
// 123 North Main Street, Chicago, Illinois 60610

Options

USPS.transformText(text, {
  // Shift the input case to upper to match abbreviations (recommended)
  shiftInputCase: true,

  // Shift the output result to capitalized words
  shiftOutputCase: true,

  // List of abbreviations to ignore (example ['PARK'])
  ignoreAbbreviations: [],

  // Remove all punctuation from output
  stripPunctuation: false,

  //Don't replace if punctuation is only a period and not last word in text
  skipMiddleEndingPeriod: true

  // Don't replace if punctuation is a period and last word in text
  skipFinalEndingPeriod: false
})
0.8.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago