Building apps for the Indonesian market? You've probably wasted hours writing regex for NIK validation, phone number formatting, and Rupiah display.
Meet @indodev/toolkit – TypeScript utilities that actually get Indonesian data right.
// Validate NIK and extract data
validateNIK('3201234567890123') // true
parseNIK('3201234567890123') // {province: 'Jawa Barat', ... }
// Format phone numbers automatically
formatPhoneNumber('081234567890', 'international')
// '+62 812-3456-7890'
// Rupiah formatting + words for invoices
formatRupiah(1500000) // 'Rp 1.500.000'
toWords(1500000) // 'satu juta lima ratus ribu'
Why use it?
- Zero dependencies – fast & secure
- Tree-shakeable (~10KB per module)
- 470+ battle-tested test cases
- Operator detection (Telkomsel, XL, etc.)
Perfect for fintech, e-commerce, HR systems, or any app handling Indonesian citizen data.
Check out the full API and examples:
https://toolkit.adamm.cloud/docs
Stop reinventing the wheel. Start shipping faster.
Top comments (0)