SIM card checksum and encoding utils for nibbling, mcc, mnc, etc.
> 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'
From npmjs repository
$ npm install
From source code
$ npm install ./simutils-js
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.