0.0.4 • Published 7 years ago

node-id-number-validator v0.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

Deprecated!!!

Please use id-number.

ID Number Validator for Node

Introduction

This is a collection of validators of identity document number for JavaScript applications.

Usage

Step 1, install.

npm i node-id-number-validator

Step 2, get a validator.

const IDValidators = require('node-id-number-validator');
const validator = IDValidators.getValidator('SG', 'NRIC');

Step 3, validate an input.

const result = validator('S0980292D');

And the result is in format:

{
    'result': true or false,
    'reason': string if the result is false
}

Available Validators

CountryDocument
SG (Singapore)NRIC
0.0.4

7 years ago

1.0.1

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago