Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

id-pl

SOFTWARE-CLINIC139MIT0.3.0

Provides utility methods to validate and generate various identification numbers used in Poland such as NIP, REGON, PESEL, etc.

random, numbers, testing, pesel, regon, nip, passport, identity card

readme

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;