@indodev/toolkit 0.0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
# @indodev/toolkit
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
TypeScript utilities for Indonesian data validation and formatting.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@indodev/toolkit)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
7
|
[](https://opensource.org/licenses/MIT)
|
|
8
8
|
|
|
9
|
-
## Why
|
|
9
|
+
## Why?
|
|
10
10
|
|
|
11
|
-
Building apps for Indonesia
|
|
11
|
+
Building apps for Indonesia means dealing with NIK validation, phone number formatting, and Rupiah display. Instead of rewriting the same logic across projects, use battle-tested utilities that just work.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- **NIK validation** - Verify Indonesian National Identity Numbers with province, date, and gender checks
|
|
16
|
+
- **Phone formatting** - Support for all major operators (Telkomsel, XL, Indosat, Smartfren, Axis) and 200+ area codes
|
|
17
|
+
- **Rupiah formatting** - Display currency with proper grammar rules (1,5 juta, not 1,0 juta)
|
|
18
|
+
- **Terbilang converter** - Numbers to Indonesian words (1500000 → "satu juta lima ratus ribu rupiah")
|
|
19
|
+
- **Type-safe** - Full TypeScript support with proper type inference
|
|
20
|
+
- **Well-tested** - 470+ test cases with 95%+ coverage
|
|
21
|
+
- **Zero dependencies** - Lightweight and tree-shakeable
|
|
20
22
|
|
|
21
23
|
## Install
|
|
22
24
|
```bash
|