pancardjs

1.0.2 • Public • Published

panjs

Validators


This package provides validation of PAN Card of an individual. (Made in India)

Installation

NodeJS

    npm i pancardjs

In your .js file add following code

    const isValid = require('pancardjs')

Usage

1. PAN (Permanent Account Number):

validates => Input must be in format AAAAA####A, and have length 10 and fourth character must be either A, B, C, F, G, H, L, J, P, T, E.

isValid.pan('AAACT2727Q')  /* returns true  */
isValid.pan('11ACT2727Q')  /* returns false */

You can also obtain PAN holder type by -

isValid.pan.holder('AAACT2727Q')  /* returns 'Company'  */

possible values are -

A: Association Of Persons (AOP),
B: Body Of Individuals (BOI),
C: Company,
F: Firm,
G: Government,
H: Hindu Undivided Family (HUF),
L: Local Authority,
J: Artificial Juridical Person,
P: Individual (Proprietor),
T: Trust (AOP),
E: Limited Liability Partnership (LLP),

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.

Package Sidebar

Install

npm i pancardjs

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

3.74 kB

Total Files

3

Last publish

Collaborators

  • tazimnpm