Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 728 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 728 Bytes

Build Status

israeli-id-validator

A simple Israeli ID validator

INSTALLATION

npm i israeli-id-validator

USAGE

import isIsraeliIdValid from 'israeli-id-validator';

console.log(isIsraeliIdValid(123456782)) // true
console.log(isIsraeliIdValid(123456785)) // false
console.log(isIsraeliIdValid(1234567856)) // false
console.log(isIsraeliIdValid(12345678)) // false
console.log(isIsraeliIdValid("123456782")) // true
console.log(isIsraeliIdValid("123456785")) // false
console.log(isIsraeliIdValid("023456783")) // true
console.log(isIsraeliIdValid("23456783")) // true