UNPKG

e118-iin-list

Version:

List of issuer identifier numbers for the international telecommunication charge card (ITU-T E.118)

21 lines (17 loc) 668 B
#!/usr/bin/env node import { identifyIssuer } from './dist/identifyIssuer.js' const iccid = process.argv[process.argv.length - 1] const issuer = identifyIssuer(iccid) if (issuer !== undefined) { console.log(JSON.stringify(issuer, null, 2)) } else { console.error(`The vendor of your ICCID "${iccid}" could not be identified!`) console.error( `Please open a new issue by following this link: https://github.com/bifravst/e118-iin-list/issues/new?title=${encodeURIComponent( `Could not identify ICCID ${iccid.replace(/.{6}$/, 'XXXXXX')}`, )}&body=${encodeURIComponent( '<!-- Please provide details about the SIM vendor. -->', )}`, ) process.exit(1) }