Skip to content

About

Validation of PESEL, NIP, REGON etc.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

validate-polish

Validation of pesel, nip, regon, identity card etc.

npm install -g validate-polish

import validatePolish = require('validate-polish');

let pesel = "92060512181";
if (!validatePolish.pesel(pesel)) {
  throw new Error("Invalid pesel.");
}

let nip = "115667734";
if (!validatePolish.nip(nip)) {
  throw new Error("Invalid nip.");
}

let regon = "1251677";
if (!validatePolish.regon(regon)) {
  throw new Error("Invalid regon.");
}

let identityCard = "ATG3123151";
if (!validatePolish.identityCard(identityCard)) {
  throw new Error("Invalid nip.");
}

About

Validation of PESEL, NIP, REGON etc.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages