An open API service indexing awesome lists of open source software.

https://github.com/ziv/idil

Israeli ID number utilities
https://github.com/ziv/idil

Last synced: 2 months ago
JSON representation

Israeli ID number utilities

Awesome Lists containing this project

README

          

# idil

Israeli ID number utilities

Installation:
```
npm i idil
yarn add idil
```

Usage:
* Generate check digit for given Israeli ID number
```typescript
import {generate} from 'idil';

const checkDigit = generate('12345678');
```

* Validate ID number
```typescript
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