Package Exports
- us-state-codes
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 (us-state-codes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
us-state-codes
A library to help you search, validate, and convert between US state names and state codes.
Installation
npm install us-state-codes --saveUsage
var states = require('us-state-codes');
var stateCode = 'HI.';
var stateName = '(HawAiI) ';
assert(states.sanitizeStateCode(stateCode) === 'HI');
assert(states.sanitizeStateName(stateName) === 'Hawaii');
assert(states.getStateNameByStateCode(stateCode) === 'Hawaii');
assert(states.getStateCodeByStateName(stateName) === 'HI');License
MIT.