@cityssm/mpac-tools 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,140 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ - Demonstrating empathy and kindness toward other people
21
+
22
+ - Being respectful of differing opinions, viewpoints, and experiences
23
+
24
+ - Giving and gracefully accepting constructive feedback
25
+
26
+ - Accepting responsibility and apologizing to those affected by our mistakes,
27
+ and learning from the experience
28
+
29
+ - Focusing on what is best not just for us as individuals, but for the overall
30
+ community
31
+
32
+ Examples of unacceptable behavior include:
33
+
34
+ - The use of sexualized language or imagery, and sexual attention or advances of
35
+ any kind
36
+
37
+ - Trolling, insulting or derogatory comments, and personal or political attacks
38
+
39
+ - Public or private harassment
40
+
41
+ - Publishing others' private information, such as a physical or email address,
42
+ without their explicit permission
43
+
44
+ - Other conduct which could reasonably be considered inappropriate in a
45
+ professional setting
46
+
47
+ ## Enforcement Responsibilities
48
+
49
+ Community leaders are responsible for clarifying and enforcing our standards of
50
+ acceptable behavior and will take appropriate and fair corrective action in
51
+ response to any behavior that they deem inappropriate, threatening, offensive,
52
+ or harmful.
53
+
54
+ Community leaders have the right and responsibility to remove, edit, or reject
55
+ comments, commits, code, wiki edits, issues, and other contributions that are
56
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
57
+ decisions when appropriate.
58
+
59
+ ## Scope
60
+
61
+ This Code of Conduct applies within all community spaces, and also applies when
62
+ an individual is officially representing the community in public spaces.
63
+ Examples of representing our community include using an official e-mail address,
64
+ posting via an official social media account, or acting as an appointed
65
+ representative at an online or offline event.
66
+
67
+ ## Enforcement
68
+
69
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
70
+ reported to the community leaders responsible for enforcement at
71
+ **corporateapps@cityssm.on.ca**.
72
+ All complaints will be reviewed and investigated promptly and fairly.
73
+
74
+ All community leaders are obligated to respect the privacy and security of the
75
+ reporter of any incident.
76
+
77
+ ## Enforcement Guidelines
78
+
79
+ Community leaders will follow these Community Impact Guidelines in determining
80
+ the consequences for any action they deem in violation of this Code of Conduct:
81
+
82
+ ### 1. Correction
83
+
84
+ **Community Impact**: Use of inappropriate language or other behavior deemed
85
+ unprofessional or unwelcome in the community.
86
+
87
+ **Consequence**: A private, written warning from community leaders, providing
88
+ clarity around the nature of the violation and an explanation of why the
89
+ behavior was inappropriate. A public apology may be requested.
90
+
91
+ ### 2. Warning
92
+
93
+ **Community Impact**: A violation through a single incident or series of
94
+ actions.
95
+
96
+ **Consequence**: A warning with consequences for continued behavior. No
97
+ interaction with the people involved, including unsolicited interaction with
98
+ those enforcing the Code of Conduct, for a specified period of time. This
99
+ includes avoiding interactions in community spaces as well as external channels
100
+ like social media. Violating these terms may lead to a temporary or permanent
101
+ ban.
102
+
103
+ ### 3. Temporary Ban
104
+
105
+ **Community Impact**: A serious violation of community standards, including
106
+ sustained inappropriate behavior.
107
+
108
+ **Consequence**: A temporary ban from any sort of interaction or public
109
+ communication with the community for a specified period of time. No public or
110
+ private interaction with the people involved, including unsolicited interaction
111
+ with those enforcing the Code of Conduct, is allowed during this period.
112
+ Violating these terms may lead to a permanent ban.
113
+
114
+ ### 4. Permanent Ban
115
+
116
+ **Community Impact**: Demonstrating a pattern of violation of community
117
+ standards, including sustained inappropriate behavior, harassment of an
118
+ individual, or aggression toward or disparagement of classes of individuals.
119
+
120
+ **Consequence**: A permanent ban from any sort of public interaction within the
121
+ community.
122
+
123
+ ## Attribution
124
+
125
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
126
+ version 2.1, available at
127
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
128
+
129
+ Community Impact Guidelines were inspired by
130
+ [Mozilla's code of conduct enforcement ladder][mozilla coc].
131
+
132
+ For answers to common questions about this code of conduct, see the FAQ at
133
+ [https://www.contributor-covenant.org/faq][faq]. Translations are available at
134
+ [https://www.contributor-covenant.org/translations][translations].
135
+
136
+ [homepage]: https://www.contributor-covenant.org
137
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
138
+ [mozilla coc]: https://github.com/mozilla/diversity
139
+ [faq]: https://www.contributor-covenant.org/faq
140
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,33 @@
1
+ ### Thank you for your interest in making this project better!
2
+
3
+ Together, we can build high quality software that meets the needs of municipalities,
4
+ while remaining open and budget conscious.
5
+
6
+ **Thank you for taking the time to read the contributing guidelines.**
7
+
8
+ ### All contributions are welcome
9
+
10
+ Being a very small team, contributions are greatly appreciated. How can you contribute?
11
+
12
+ - **Promote this project!**
13
+ - Documentation and tutorials
14
+ - Submit bug reports (or fix them!)
15
+ - Request new features (or build them!)
16
+
17
+ ### Please Read the Code of Conduct
18
+
19
+ The [Code of Conduct](CODE_OF_CONDUCT.md) document describes how we should act when working together.
20
+ Be nice! :smile:
21
+
22
+ ### How to report a bug or suggest an enhancement
23
+
24
+ **If you find a security vulnerability, do NOT open an issue. Email
25
+ <corporateapps@cityssm.on.ca> instead.**
26
+
27
+ For all other bug reports, feature requests, or enhancements,
28
+ open an issue and use the closest template.
29
+
30
+ ### Thanks Again
31
+
32
+ We are a very small team with big aspirations and limited resources.
33
+ Thank you for helping with this project in any way you can!
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright (c) 2025 The City of Sault Ste. Marie
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # MPAC Tools for Node
2
+
3
+ _This project is not endorsed by the [Municipal Property Assessment Corporation (MPAC)](https://www.mpac.ca)._
4
+
5
+ _Lookups and utilities for working with MPAC data._
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @cityssm/mpac-tools
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```javascript
16
+ import * as mpacTools from '@cityssm/mpac-tools'
17
+
18
+ /*
19
+ * Validate 15-digit roll numbers.
20
+ */
21
+
22
+ console.log(mpacTools.validateRollNumber('123456789012345'))
23
+ // => true
24
+
25
+ /*
26
+ * Validate 19-digit roll numbers,
27
+ * ensuring the first four digits is a valid municipality.
28
+ */
29
+
30
+ console.log(mpacTools.validateRollNumber('5761010000000000000'))
31
+ // => true
32
+
33
+ /*
34
+ * Parse a roll number into its parts.
35
+ */
36
+
37
+ console.log(mpacTools.parseRollNumber('5761123456789012345'))
38
+ /*
39
+ => {
40
+ county: '57',
41
+ municipality: '61',
42
+ mapArea: '12',
43
+ mapDivision: '3',
44
+ mapSubdivision: '456',
45
+ parcel: '789',
46
+ parcelSub: '01',
47
+ primarySubordinate: '2345'
48
+ }
49
+ */
50
+ ```
51
+
52
+ ## Related Projects
53
+
54
+ [**MPAC Year-End Tax File (YETF) Parser**](https://www.npmjs.com/package/@cityssm/mpac-yetf)<br />
55
+ Takes an MPAC Year End Tax File (YETF) and parses it into usable objects.
56
+
57
+ 🔒 **MPAC Web Services for Node**<br />
58
+ An unofficial wrapper around MPAC Web Services.
59
+ _Restricted by classified documentation._
package/SECURITY.md ADDED
@@ -0,0 +1,15 @@
1
+ # Security Policy
2
+
3
+ **Thank you for your interest in keeping this project safe for everyone.**
4
+
5
+ ## Supported Versions
6
+
7
+ Due to limited resources, only the latest version is supported only for security updates.
8
+
9
+ ## Reporting a Vulnerability
10
+
11
+ To report a security vulnerability,
12
+ please email <corporateapps@cityssm.on.ca>.
13
+
14
+ Every attempt will be made to resolve confirmed vulnerabilities
15
+ in a timely manner.
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './rollNumbers/utilities.js';
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './rollNumbers/utilities.js';
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './rollNumbers/utilities.js'
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@cityssm/mpac-tools",
3
+ "version": "0.1.0",
4
+ "description": "Lookups and utilities for working with MPAC data.",
5
+ "keywords": [
6
+ "mpac",
7
+ "ontario",
8
+ "government",
9
+ "property-assessment",
10
+ "roll-number"
11
+ ],
12
+ "homepage": "https://github.com/cityssm/node-mpac-tools#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/cityssm/node-mpac-tools/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/cityssm/node-mpac-tools.git"
19
+ },
20
+ "license": "MIT",
21
+ "author": "The Corporation of the City of Sault Ste. Marie",
22
+ "type": "module",
23
+ "exports": {
24
+ ".": "./index.js",
25
+ "./rollNumbers": "./rollNumbers/index.js"
26
+ },
27
+ "scripts": {
28
+ "test": "node --test"
29
+ },
30
+ "devDependencies": {
31
+ "@types/node": "^24.5.2",
32
+ "eslint-config-cityssm": "^29.1.1",
33
+ "prettier-config-cityssm": "^1.0.0"
34
+ }
35
+ }
@@ -0,0 +1,2 @@
1
+ export * from './lookups.js';
2
+ export * from './utilities.js';
@@ -0,0 +1,2 @@
1
+ export * from './lookups.js';
2
+ export * from './utilities.js';
@@ -0,0 +1,2 @@
1
+ export * from './lookups.js'
2
+ export * from './utilities.js'