ph-id-validator
Version:
Identification number validation for PH ids
82 lines (52 loc) • 2.95 kB
Markdown
<div align="center">
<h1>ph-id-validator</h1>
<p>Validate your PH identification cards with ease</p>
</div>
<!-- prettier-ignore-start -->
[](https://github.com/jannomeister/ph-id-validator/pulls)
[](https://github.com/prettier/prettier)
[](https://opensource.org/licenses/MIT)
[](#contributors-)
<!-- prettier-ignore-end -->
## The problem
I can't find any open source identification cards validator for PH ids
## This solution
I created this tool to help you validate your PH id cards.
## Installation
This module is distributed via [npm][npm] which is bundled with [node][node] and
should be installed as one of your project's `dependencies`:
```
npm install ph-id-validator
```
## Usage
```javascript
import { isSSSId } from 'ph-id-validator'
isTinId("123-456-789-123") // true
```
## Other Solutions
I can't find any open source solution for this problem. But If I found one I'll list it here.
## Issues
_Looking to contribute? Look for the [Good First Issue][good-first-issue]
label._
### 🐛 Bugs
Please file an issue for bugs, missing documentation, or unexpected behavior.
[**See Bugs**](https://github.com/jannomeister/ph-id-validator/issues)
### 💡 Feature Requests
Please file an issue to suggest new features. Vote on feature requests by adding
a 👍. This helps maintainers prioritize what to work on.
## LICENSE
MIT
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="http://resume.jannomeister.com"><img src="https://avatars.githubusercontent.com/u/46916819?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Janno De Jesus</b></sub></a><br /><a href="https://github.com/jannomeister/ph-id-validator/commits?author=jannomeister" title="Code">💻</a> <a href="https://github.com/jannomeister/ph-id-validator/commits?author=jannomeister" title="Documentation">📖</a> <a href="#infra-jannomeister" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/jannomeister/ph-id-validator/commits?author=jannomeister" title="Tests">⚠️</a></td>
</tr>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!