GithubHelp home page GithubHelp logo

mswiecicki / pesel-check Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 82 KB

Small module providing function validating PESEL number (Polish personal ID)

License: MIT License

JavaScript 100.00%
pesel validation pesel-validation check checker

pesel-check's Introduction

PESEL check

DONE (no more changes to the project anticipated)
unless some bugs or feature requests surface in the future

Small package aiming to do one thing, and one thing only: check PESEL.

PESEL is a Polish personal identification number consisting of 11 digits and encoding birthdate and sex of the owner.

While being principally unique and correct it is possible for legit (meaning copied from legal document)
PESEL to be duplicated or incorrect algorithm-wise.
That happens due to human error during registration or changing of PESEL number.

Usage

Nothing fancy - you pass a string to function and get boolean in return.

const isPeselValid = require('pesel-check');

isPeselValid('12345678901'); // => false (since '12345678901' isn't valid PESEL)
isPeselValid('11111111116'); // => true (since '11111111116' apparently is)

Function checks length, contents, birthdate and validates control sum.

pesel-check's People

Contributors

mdziekon avatar mswiecicki avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

mdziekon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.