id-phone-utils
v1.0.0
Published
Utility functions for validating Indonesian phone numbers
Maintainers
Readme
📞 ID Phone Utils
📦 Overview
ID Phone Utils simplifies phone number handling in Indonesia. Whether you're cleaning up user input, validating form entries, or tagging numbers by mobile operator, this library is built for fast and accurate results.
✨ Features
- ✅ Validate Indonesian phone numbers (mobile only)
- 🔄 Normalize numbers from
+62/62to local format (08xx) - 📱 Identify phone operators (e.g., Telkomsel, XL, Indosat)
- 🧼 Clean up input by removing spaces, dashes, etc.
- 🔧 TypeScript support out of the box
📥 Installation
Installation
npm install id-phone-utils
# or
yarn add id-phone-utils