🇿🇦 Perform regex and checksum match to check if given number string is a valid South African ID
Install the package locally within you project folder with your package manager:
With npm:
npm install valid-south-african-idWith yarn:
yarn add valid-south-african-idWith pnpm:
pnpm add valid-south-african-idconst validSouthAfricanId = require('valid-south-african-id')
console.log(validSouthAfricanId('yourIdNumber')) // true || false$ npm install --global valid-south-african-id
# OR
$ yarn global add valid-south-african-idThen:
$ valid-sa-id 9202204720082
# falseGot an idea for a new feature? Found a bug? Contributions are welcome! Please open up an issue or make a pull request.