Javascript module for checking operator, network type by using phone number.
Using yarn
$ yarn add myanphone
Using npm
$ npm install myanphone --save
Import
import { sanitize, validate, getOperatorName, getNetworkType } from 'myanphone'
Sanitize the phone number
sanitize(PHONE_NUMBER)
Validate the phone number
validate(PHONE_NUMBER")
Operator Name
getOperatorName(PHONE_NUMBER")
Network Type
getNetworkType(PHONE_NUMBER")