Socket
Book a DemoInstallSign in
Socket

nric

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nric

Validate or generate Singapore NRIC numbers

latest
Source
npmnpm
Version
1.2.2
Version published
Weekly downloads
5.8K
-2.45%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

NRIC

FAQs

Package last updated on 06 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts