JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q36569F
  • License ISC

this package provides validation of Aadhar Card number of an individual. (Made in India)

Package Exports

  • aadharjs
  • aadharjs/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aadharjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

AadharJs

npm npm version License: MIT Snyk Vulnerabilities for npm package version

Validate an Aadhar Card Number for your frontend and backend systems

Installation

NodeJS

    npm i aadharjs

In your .js file add following code

const isValid = require('aadharjs')

Usage

1. AADHAR (Issued by - Unique Identification Authority of India):

validates => Input must be in format ############, and have length 12 and last char is Valid checksum.

const invalid = '499128665246'
const valid =   '499118665246'
isValid.aadhar(invalid) /* returns false */
isValid.aadhar(valid)   /* returns true  */

You can also calculate the checksum of a AADHAR by -

isValid.aadhar.getValidDigit('49911866524') /* return 6 */

For Feature requests and Error reporting:

create an issue on github repository or contact directly to tazimmadre5041@gmail.com

**Don't Forget to add a star to github repo. Please provide your comments, suggest improvements and other codes which are not covered in this package.