Skip to content

SIM card checksum and encoding utils for nibbling, mcc, mnc, etc.

License

Notifications You must be signed in to change notification settings

iotconnectivity/simutils-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIMUtils-js

SIM card checksum and encoding utils for nibbling, mcc, mnc, etc.

Table of Contents

Usage

> var sim = require('../src');
undefined
> sim
{ luhn_calculate: [Function: luhn_calculate],
  enc_mcc: [Function: enc_mcc],
  enc_plmn: [Function: enc_plmn],
  dec_plmn: [Function: dec_plmn],
  nibble_iccid: [Function: nibble_iccid],
  nibble_imsi: [Function: nibble_imsi] }
> sim.enc_mcc('214')
'12F4'
> sim.dec_plmn('12F410')
[ '214', '01' ]
> sim.nibble_iccid('8901260881205897720')
'981062801802857927F0'
> sim.nibble_imsi('425019600457406')
'084952106900544760'

Installation

From npmjs repository

$ npm install 

From source code

$ npm install ./simutils-js

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.

Releases

No releases published

Packages

No packages published