rwa-validator
v1.0.6
Published
A fast minimal package to validate Rwandan National Ids and Phone Numbers(all carriers) using Regular Expressions.
Downloads
26
Maintainers
Readme
rwa-validator
A fast minimal package to validate Rwandan National Ids and Phone Numbers(all carriers) using Regular Expressions.
Installation
npm install rwa-validator
or
yarn add rwa-validator
or
Usage
Validating Phone Number
const { isNationalId, isPhoneNumber } = require("rwa-validator"); isPhoneNumber("0788854444"); // true isPhoneNumber("0778854444"); // false
Validating National ID
// must be 16 digit numbers isNationalId("1199672222000040"); // true isNationalId("1201772222000040"); // false
Contribution
- Please before making a PR, read first this Contributing Guideline
License
MIT
Author
Igwaneza Bruce