You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

imei

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

imei

Utilities for dealing with IMEIs


Version published
Weekly downloads
248
increased by31.91%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

node-imei

Build Status

Description

node-imei is a helper module for IMEI validation and creation.

Installation

$ npm install imei

Usage

var imei = require('imei');

var anImei = '352099001761481'; var isValid = imei.isValid(anImei); // returns true

imei.next(anImei, function(e, next) { console.log(next); // logs '352099001761499' (the next IMEI in the range) });

isValid(IMEI)

Returns a boolean denoting whether the IMEI is valid see the standards. In practice this means a 15 digit number with a correct luhn digit.

next(prevIMEI, callback)

Yields the next valid IMEI after prevIMEI. You can use this method to iterate up through valid IMEIs. It yields an error if either the prevIMEI is invalid or you have come to the end of the TAC range.

Contributors

Pair programmed by Roy Lines and James Bloomer.

Keywords

FAQs

Package last updated on 03 Feb 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc