apn-formats
v0.1.1
Published
APN formatter tool to verify Assessor Parcel Numbers
Downloads
7
Maintainers
Readme
Case and spaces are ignored in state and county names. State names can be full names or abbreviations ('Washington' or 'WA'). District of Columbia is represented with 'DC'.
X: Integer [0-9] A: Capital letter [A-Z] S: Space All other characters are literal */
var validation = apn-formats.validate('123456-7890', 'wa', 'king'); console.log(validation); //output true
var validation = apn-formats.validate('1234-5678, 'wa', 'king'); console.log(validation); //output false