nric
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i nric

Weekly Downloads

3,121

Version

1.2.2

License

MIT

Unpacked Size

4.43 kB

Total Files

5

Last publish

Collaborators

  • danielkhoo