stricte / identification-numbers

Provides utility methods to validate and generate various identification numbers such as NIP, REGON, PESEL, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Identification Numbers

Build Status npm version Dependency Status devDependency Status

Provides utility methods to validate and generate various identification numbers such as NIP, REGON, PESEL, etc.

Note that this project is still in its incubating phase.

Installation

npm install identification-numbers

Usage

var identification_numbers = require('identification-numbers'),
    pesel = identification_numbers.pesel,
    regon = identification_numbers.regon;

expect(pesel('83071503434').isValid()).toBeTruthy();
expect(regon('975124224').isValid()).toBeTruthy();

Release History

  • 0.0.7
    • Expermienal patch with no changes in code
  • 0.0.6
  • 0.0.5
    • Decode PESEL
  • 0.0.4
    • Validate PESEL
  • 0.0.3
    • Added random NIP generator
    • Added NIP validator
    • Added random REGON generator
    • Added REGON validator
  • 0.0.2
  • 0.0.1
    • Initial release

About

Provides utility methods to validate and generate various identification numbers such as NIP, REGON, PESEL, etc.

License:MIT License


Languages

Language:JavaScript 100.0%