Skip to content

wojtekmaj/is-valid-pesel

Repository files navigation

npm downloads CI

Is-Valid-PESEL

Check if a number is a valid PESEL.

tl;dr

  • Install by executing npm install is-valid-pesel or yarn add is-valid-pesel.
  • Import by adding import isValidPESEL from 'is-valid-pesel'.
  • Use it by writing const valid = isValidPESEL('50062373028')

See also

  • is-valid-nip: Check if a number is a valid Numer Identyfikacji Podatkowej (NIP).
  • is-valid-regon: Check if a number is a valid REGON.

Examples

isValidPESEL('50062373028'); // true

License

The MIT License.

Author

Wojciech Maj Wojciech Maj