Skip to content

cityssm/node-mpac-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-tools

Usage

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.

About

Lookups and utilities for working with MPAC data.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors