Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wojtekmaj/is-valid-pesel

Check if a number is a valid PESEL.
https://github.com/wojtekmaj/is-valid-pesel

pesel validation

Last synced: about 1 month ago
JSON representation

Check if a number is a valid PESEL.

Awesome Lists containing this project

README

        

[![npm](https://img.shields.io/npm/v/is-valid-pesel.svg)](https://www.npmjs.com/package/is-valid-pesel) ![downloads](https://img.shields.io/npm/dt/is-valid-pesel.svg) [![CI](https://github.com/wojtekmaj/is-valid-pesel/actions/workflows/ci.yml/badge.svg)](https://github.com/wojtekmaj/is-valid-pesel/actions)

# 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](https://github.com/wojtekmaj/is-valid-nip): Check if a number is a valid Numer Identyfikacji Podatkowej (NIP).
- [is-valid-regon](https://github.com/wojtekmaj/is-valid-regon): Check if a number is a valid REGON.

## Examples

```ts
isValidPESEL('50062373028'); // true
```

## License

The MIT License.

## Author



Wojciech Maj


Wojciech Maj