idil
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

idil

Israeli ID number utilities

Installation:

npm i idil
yarn add idil

Usage:

  • Generate check digit for given Israeli ID number
import {generate} from 'idil';

const checkDigit = generate('12345678');
  • Validate ID number
import {validate} from 'idil';

// using id with check digit
if (validate('123456782')) {
    // id is valid
}

if (validate('12345678', 2)) {
    // is is valid
}

  • Contain type definition for TypeScript
  • MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i idil

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

154 kB

Total Files

10

Last publish

Collaborators

  • xprmntl