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
Validate an Aadhar Card Number for your frontend and backend systems
Installation
NodeJS
npm i aadharjsIn 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