README
valid-south-african-id
πΏπ¦ Perform regex and checksum match to check if given number string is a valid South African ID
Table of Contents
Install
This project uses node and npm.
$ npm install valid-south-african-id
$ # OR
$ yarn add valid-south-african-id
Usage
const validSouthAfricanId = require('valid-south-african-id')
console.log(validSouthAfricanId('yourIdNumber')) // true || false
CLI
$ npm install --global valid-south-african-id
# OR
$ yarn global add valid-south-african-id
Then:
$ valid-sa-id 9202204720082
# false
Contribute
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
License
MIT