id-pl

0.3.0 • Public • Published

id-pl

Provides utility methods to validate and generate various identification numbers used in Poland such as:

Build Status npm version Dependency Status Code Climate Test Coverage

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;

Package Sidebar

Install

npm i id-pl

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

9.63 kB

Total Files

10

Last publish

Collaborators

  • danielpacak