KE Phone Number formatter
This is a simple package to assist in formatting Kenyan phone numbers and also auto selecting the ISP the number belongs to.
Installing via npm
npm install --save phone-formatter-ke@x.x.x
Replace x.x.x
with the current version
Via CDN
- Coming soon
Usage
const checkOperator FormatNumbers = ; /** * Format phones * Format phone number * pass any number here for any phone number/provider in Kenya */ let formatted_phone = // pass number as a string, console // will show 254711123123 let formatted_phone = // pass number as a stringconsole // will show 254711123123
Find ISP/MVNO
/** * pass any number here for any phone number/provider in Kenya * Supported providers * Safaricom KE * Airtel KE * Telkom KE * Equitel KE * Faiba4g/Jamii Telkom * */let isp = // pass number as a stringconsole // will show Safaricom let isp2 = console // will show Airtel...
Contributions
PLease submit your contributions as PRs and also leave a good description for the PR.
Coffee?
Support me by subscribing my YouTube Channel to also learn more
Licenses
This code is licenced under MIT. Feel free to use, distribute, sell or modify. No warranties or guarantees are offered by the same.