id-pl
v0.3.0
Published
Provides utility methods to validate and generate various identification numbers used in Poland such as NIP, REGON, PESEL, etc.
Downloads
291
Maintainers
Readme
id-pl
Provides utility methods to validate and generate various identification numbers used in Poland such as:
Installation
$ npm install id-pl --save --save-exact
Quick Start
const {
PESEL,
REGON,
IdentityCardNumber,
PassportNumber
} = require('id-pl');
expect(PESEL.isValid('83071503434')).to.be.true;
expect(REGON.isValid('975124224')).to.be.true;
expect(IdentityCardNumber.isValid('ABA300000')).to.be.true;
expect(PassportNumber.isValid('CC7999486')).to.be.true;