Skip to content

npm package tool for generating and validating Singapore NRIC numbers

License

Notifications You must be signed in to change notification settings

danielkhoo/nric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

npm package tool for generating and validating Singapore NRIC numbers

Topics

Resources

License

Stars

Watchers

Forks