
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
node-imei-ts
Advanced tools
imei generator/checker fork from https://github.com/BadMachine/node-imei with added TS compatibility
imei generator/checker (via Luhn algorithm) forked from https://github.com/BadMachine/node-imei with minor changes made to make this package Typescript-compatible. Also added types definitions
$ npm install node-imei-ts
var imei = require('node-imei-ts');
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
export imei from 'node-imei-ts'
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
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)
Returns a boolean value.
codes.js contains json object with Type Allocation Codes.
Just add new TACs in codes.js More info and examples of TAC
s you can find at
wiki
or
OSMOCOM direct link to download TACs db in json
FAQs
imei generator/checker fork from https://github.com/BadMachine/node-imei with added TS compatibility
The npm package node-imei-ts receives a total of 6 weekly downloads. As such, node-imei-ts popularity was classified as not popular.
We found that node-imei-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.