# node-id-number-validator

> JavaScript ID Number Validator for NodeJS

Latest version **0.0.4** (published 2017-07-26) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install node-id-number-validator
pnpm add node-id-number-validator
yarn add node-id-number-validator
bun add node-id-number-validator
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2017-07-26 |
| First published | 2016-10-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Maintainers | dreamrunner |

## Links

- npm: https://www.npmjs.com/package/node-id-number-validator
- Repository: https://github.com/imdreamrunner/js-id-number-validator
- Homepage: https://github.com/imdreamrunner/js-id-number-validator#readme
- Issues: https://github.com/imdreamrunner/js-id-number-validator/issues
- npm.io page: https://npm.io/package/node-id-number-validator

## Recent versions

- 0.0.4 (latest) — 2017-07-26
- 0.0.3 — 2016-10-07
- 0.0.2 — 2016-10-07
- 0.0.1 — 2016-10-07

## README

# Deprecated!!!

Please use [`id-number`](https://www.npmjs.com/package/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.

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

Step 3, validate an input.

```javascript
const result = validator('S0980292D');
```

And the result is in format:

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

### Available Validators

| Country | Document |
|:-------:|:--------:|
| SG (Singapore) | NRIC |

---
_Source: https://npm.io/package/node-id-number-validator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
