identification-numbers
Version:
Provides utility methods to validate and generate various identification numbers such as NIP, REGON, PESEL, etc.
6 lines (5 loc) • 304 B
JavaScript
var identification_numbers = require('identification-numbers'),
pesel = identification_numbers.pesel(),
regon = identification_numbers.regon();
console.log('Is PESEL `83071503434` valid?', pesel('83071503434').isValid());
console.log('Is REGON `975124224` valid?', regon('975124224').isValid());