Skip to content
/ id-lv Public

Latvijas personas koda kontrolcipara, šablona un datuma daļas pārbaudes. Latvian personal identification code validator. Validates checksum, pattern and date.

Notifications You must be signed in to change notification settings

krauzand/id-lv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

id-lv

Latvijas personas koda kontrolcipara pārbaudes Javascript valodā. Latvian person identification code checksum validator in Javascript.

Lietošanas piemēri / Examples of usage

Iekļaujam id-lv.js faila saturu savā projektā un gatavs lietošanai. Include id-lv.js file in your project and you are ready to go.

let validator = new IdeLve();

if (validator.isValidIdentificationCode("111111-11111")) {
  console.log("jā, būs pareizs kods");
  console.log("ok, valid code");
}
if (validator.isValidIdentificationCode("111112-11111")) {
  console.log("nē, nebūs pareizs kods");
  console.log("invalid code");
}

About

Latvijas personas koda kontrolcipara, šablona un datuma daļas pārbaudes. Latvian personal identification code validator. Validates checksum, pattern and date.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published