habibthadev / phoneng
PublicZero-dependency TypeScript library for parsing, validating, normalizing, and formatting Nigerian phone numbers. Built with strict types, comprehensive validation, and production-grade error handling.
A lightweight library that parses, validates, normalizes, and formats Nigerian phone numbers, detects mobile networks, and handles batches with detailed summaries.
How It Works
You hear about a handy helper that straightens out messy Nigerian phone numbers for customer lists or apps.
You easily add this phone number fixer to the place where you handle your contacts or data.
Paste in a phone number like 08031234567 and right away learn if it's good, which network like MTN it's on, and get neat versions to use.
Give it a whole list of numbers from your spreadsheet or notes to clean them all together.
See a quick summary showing how many are valid, how many aren't, and counts for each phone company.
Now your phone numbers are all validated, formatted nicely, and sorted – set to send messages or make calls without hassle.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.