Validate or generate Singapore NRIC numbers


Keywords
NRIC, singapore, npm-package
License
MIT
Install
npm install nric@1.1.0

Documentation

nric

Utility to validate or generate Singapore NRIC and FIN numbers with valid check digit.

Install

$ npm install nric

Usage

const nric = require('nric');

nric.validate('S1234567A'); //false

nric.validate('S9470855I'); //true

nric.validate('T7123769E'); //true

nric.generateNRIC(); //e.g. S9470855I

nric.generateFIN(); //e.g. G2943157X

License

MIT