@make-sense/adhaar-validator
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@make-sense/adhaar-validator

It is typescript enchanced version of Adhaar-validator library

This library checks whether a given number is valid Aadhaar number or Adhaar Virtual ID, following the structure which is given by Government of India.

This library can only be used to validate the format of adhaar card number. It strictly doesnt check for authenticity of Adhaar cards.

References:

Install

npm install @make-sense/adhaar-validator

Use

import { isValid, isValidVID } from "@make-sense/adhaar-validator";
// or
// const { isValid, isValidVID } = require("@make-sense/adhaar-validator");

isValidNumber("123412341234");
// false
isValidNumber("123412341235");
// false
isValidNumber("234123412346");
// true

// Virtual ID Tests
isValidVID("2345234523436129");
// true
isValidVID("2345234523436123");
// false
isValidVID("2345234523436");
// false

Readme

Keywords

none

Package Sidebar

Install

npm i @make-sense/adhaar-validator

Weekly Downloads

6

Version

1.0.3

License

ISC

Unpacked Size

4.6 kB

Total Files

6

Last publish

Collaborators

  • monsid