pancardjs
v1.0.2
Published
this package provides validation of PAN Card of an individual. (Made in India)
Downloads
19
Maintainers
Readme
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 [email protected]