# parse-pesel

> Parser polskiego nr PESEL

Latest version **1.0.4** (published 2020-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse-pesel
pnpm add parse-pesel
yarn add parse-pesel
bun add parse-pesel
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2020-02-21 |
| First published | 2020-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Tomasz Ciborski |
| Maintainers | episage |

## Links

- npm: https://www.npmjs.com/package/parse-pesel
- Repository: https://github.com/episage/parse-pesel
- Homepage: https://github.com/episage/parse-pesel#readme
- Issues: https://github.com/episage/parse-pesel/issues
- npm.io page: https://npm.io/package/parse-pesel

## Recent versions

- 1.0.4 (latest) — 2020-02-21
- 1.0.3 — 2020-02-21
- 1.0.2 — 2020-02-21
- 1.0.1 — 2020-02-21
- 1.0.0 — 2020-02-21

## README

## Parser dla polskiego numeru PESEL

### Instalacja
```bash
npm i parse-pesel
```

### Przykład uzycia
```javascript
var parsePesel = require('parse-pesel');
var result = parsePesel('02252356524');
console.log(result);

// Rezultat:
// {
//     rok: 2020,
//     miesiac: 1, // 1-12
//     dzien: 22, // 1-31
//     plec: 'm', // lub 'k'
//     data: 2020-01-22T12:00:00.000Z // natywny obiekt Date
// }
```

Jezeli PESEL jest niepoprawny to program rzuci wyjatek.

### Credits
W duzym stopniu zapozyczone od [Dev.CDur.pl](http://dev.cdur.pl/Artykuly/Pobieranie-daty-urodzenia-i-plci-z-numeru-PESEL-Javascript)

---
_Source: https://npm.io/package/parse-pesel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
