@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.
Files changed (2) hide show
  1. package/README.md +12 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,22 +1,24 @@
1
1
  # @indodev/toolkit
2
2
 
3
- **Production-ready utilities for Indonesian developers.** Stop rewriting the same validation logic - use battle-tested functions that just work.
3
+ TypeScript utilities for Indonesian data validation and formatting.
4
4
 
5
5
  [![npm version](https://badge.fury.io/js/@indodev%2Ftoolkit.svg)](https://www.npmjs.com/package/@indodev/toolkit)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.3-blue)](https://www.typescriptlang.org/)
7
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
8
 
9
- ## Why This Exists
9
+ ## Why?
10
10
 
11
- Building apps for Indonesia? You need NIK validation, phone formatting, and Rupiah display. Instead of copy-pasting regex from StackOverflow, use this.
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
- **What you get:**
14
- - NIK validation that actually works (province codes, birth dates, gender)
15
- - Phone numbers formatted correctly (Telkomsel, XL, Indosat, etc)
16
- - Rupiah with proper grammar ("1,5 juta" not "1,0 juta")
17
- - Terbilang converter (1500000 "satu juta lima ratus ribu rupiah")
18
- - TypeScript types that make sense
19
- - 150+ tests so you can ship with confidence
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indodev/toolkit",
3
- "version": "0.0.1",
3
+ "version": "0.1.1",
4
4
  "description": "Indonesian developer utilities for validation, formatting, and more",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",