@cityssm/mpac-tools
v0.1.0
Published
Lookups and utilities for working with MPAC data.
Downloads
51
Maintainers
Readme
MPAC Tools for Node
This project is not endorsed by the Municipal Property Assessment Corporation (MPAC).
Lookups and utilities for working with MPAC data.
Installation
npm install @cityssm/mpac-toolsUsage
import * as mpacTools from '@cityssm/mpac-tools'
/*
* Validate 15-digit roll numbers.
*/
console.log(mpacTools.validateRollNumber('123456789012345'))
// => true
/*
* Validate 19-digit roll numbers,
* ensuring the first four digits is a valid municipality.
*/
console.log(mpacTools.validateRollNumber('5761010000000000000'))
// => true
/*
* Parse a roll number into its parts.
*/
console.log(mpacTools.parseRollNumber('5761123456789012345'))
/*
=> {
county: '57',
municipality: '61',
mapArea: '12',
mapDivision: '3',
mapSubdivision: '456',
parcel: '789',
parcelSub: '01',
primarySubordinate: '2345'
}
*/Related Projects
MPAC Year-End Tax File (YETF) Parser Takes an MPAC Year End Tax File (YETF) and parses it into usable objects.
🔒 MPAC Web Services for Node An unofficial wrapper around MPAC Web Services. Restricted by classified documentation.
