# imei-android

> imei generator/checker

Latest version **3.2.0** (published 2024-01-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install imei-android
pnpm add imei-android
yarn add imei-android
bun add imei-android
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.0 |
| Published | 2024-01-12 |
| First published | 2024-01-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ME |
| Maintainers | waesxl |
| Keywords | imei, imeigen, imeicheck |

## Links

- npm: https://www.npmjs.com/package/imei-android
- Repository: https://github.com/waesxl/imei-android
- Issues: https://github.com/waesxl/imei-android
- npm.io page: https://npm.io/package/imei-android

## Recent versions

- 3.2.0 (latest) — 2024-01-12
- 3.0.0 — 2024-01-12
- 2.0.0 — 2024-01-12
- 1.0.2 — 2024-01-12

## README

# node-imei
## Description
imei generator/checker (via Luhn algorithm)

## Installation
    $ npm install node-imei
    
## Usage
``` javascript
var imei = require('node-imei');

var IMEI= new imei();
console.log(IMEI.random()); // returns string with random imei

console.log(IMEI.device("Apple","iPhone3G")); // returns string with imei by device TAC

console.log(IMEI.isValid("860921035123120")); // returns true
```

### random()
Returns a string with valid imei. Script makes string with 3 parts:
1st part is TAC (Type Allocation Code)
2nd part is random value from 100000 to 999999
3rd part is last digit(Luhn digit)

### isValid(imei)
Returns a boolean value.
# Also
codes.js contains json object with Type Allocation Codes.
## If you want to extend the file
Just add new TAC`s in codes.js
More info and examples of TAC`s you can find at 
[wiki](https://en.wikipedia.org/wiki/Type_Allocation_Code)
or
[OSMOCOM direct link to download TACs db in json](http://tacdb.osmocom.org/export/tacdb.json)

# License

  [MIT](LICENSE)

---
_Source: https://npm.io/package/imei-android · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
