@indodev/toolkit 0.1.2 → 0.1.4
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 +15 -11
- package/package.json +11 -6
package/README.md
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
<!-- # @indodev/toolkit
|
|
2
|
+
|
|
3
|
+
TypeScript utilities for Indonesian data validation and formatting.
|
|
4
|
+
|
|
5
|
+
<div align="center">
|
|
6
|
+
|
|
7
|
+
[](https://github.com/choiruladamm/indo-dev-utils/actions) [](https://npmjs.com/package/@indodev/toolkit) [](https://bundlephobia.com/package/@indodev/toolkit) [](https://typescriptlang.org/) [](https://opensource.org/licenses/MIT)
|
|
8
|
+
|
|
9
|
+
</div> -->
|
|
10
|
+
|
|
11
|
+
<div align="center">
|
|
12
|
+
|
|
1
13
|
# @indodev/toolkit
|
|
2
14
|
|
|
3
15
|
TypeScript utilities for Indonesian data validation and formatting.
|
|
4
16
|
|
|
5
|
-
[](https://typescriptlang.org/)
|
|
6
|
-
|
|
17
|
+
[](https://github.com/choiruladamm/indo-dev-utils/actions) [](https://npmjs.com/package/@indodev/toolkit) [](https://bundlephobia.com/package/@indodev/toolkit) [](https://typescriptlang.org/) [](https://opensource.org/licenses/MIT)
|
|
18
|
+
|
|
19
|
+
</div>
|
|
7
20
|
|
|
8
21
|
## Why?
|
|
9
22
|
|
|
@@ -216,8 +229,6 @@ export default {
|
|
|
216
229
|
| `formatNIK(nik, separator?)` | Format with separators |
|
|
217
230
|
| `maskNIK(nik, options?)` | Mask for privacy |
|
|
218
231
|
|
|
219
|
-
[Full NIK docs →](#)
|
|
220
|
-
|
|
221
232
|
### Phone Module
|
|
222
233
|
|
|
223
234
|
| Function | Description |
|
|
@@ -227,8 +238,6 @@ export default {
|
|
|
227
238
|
| `getOperator(phone)` | Detect operator (Telkomsel, XL, etc) |
|
|
228
239
|
| `parsePhoneNumber(phone)` | Get all phone info |
|
|
229
240
|
|
|
230
|
-
[Full Phone docs →](#)
|
|
231
|
-
|
|
232
241
|
### Currency Module
|
|
233
242
|
|
|
234
243
|
| Function | Description |
|
|
@@ -239,8 +248,6 @@ export default {
|
|
|
239
248
|
| `toWords(amount, options?)` | Convert to Indonesian words |
|
|
240
249
|
| `roundToClean(amount, unit?)` | Round to clean amounts |
|
|
241
250
|
|
|
242
|
-
[Full Currency docs →](#)
|
|
243
|
-
|
|
244
251
|
## Bundle Size
|
|
245
252
|
|
|
246
253
|
| Module | Size (minified + gzipped) |
|
|
@@ -266,8 +273,6 @@ Found a bug? Want to add more Indonesian utilities?
|
|
|
266
273
|
3. Make changes and add tests
|
|
267
274
|
4. Submit a PR
|
|
268
275
|
|
|
269
|
-
We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
270
|
-
|
|
271
276
|
## Roadmap
|
|
272
277
|
|
|
273
278
|
- [x] NIK validation & parsing
|
|
@@ -287,7 +292,6 @@ MIT © [choiruladamm](https://github.com/choiruladamm)
|
|
|
287
292
|
|
|
288
293
|
- 📖 [Documentation](#) (coming soon)
|
|
289
294
|
- 🐛 [Report Issues](https://github.com/yourusername/indo-dev-utils/issues)
|
|
290
|
-
- 💬 [Discussions](https://github.com/yourusername/indo-dev-utils/discussions)
|
|
291
295
|
|
|
292
296
|
---
|
|
293
297
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indodev/toolkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Indonesian developer utilities for validation, formatting, and more",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -61,19 +61,24 @@
|
|
|
61
61
|
"keywords": [
|
|
62
62
|
"indonesia",
|
|
63
63
|
"indonesian",
|
|
64
|
-
"validation",
|
|
65
64
|
"nik",
|
|
66
|
-
"
|
|
67
|
-
"phone",
|
|
65
|
+
"validation",
|
|
66
|
+
"phone-number",
|
|
67
|
+
"currency",
|
|
68
68
|
"rupiah",
|
|
69
|
+
"terbilang",
|
|
70
|
+
"typescript",
|
|
69
71
|
"utilities",
|
|
70
|
-
"
|
|
72
|
+
"formatting",
|
|
73
|
+
"e-commerce",
|
|
74
|
+
"indonesia-utilities"
|
|
71
75
|
],
|
|
72
76
|
"author": "Choirul Adam <choiruladamm@gmail.com>",
|
|
73
77
|
"license": "MIT",
|
|
74
78
|
"repository": {
|
|
75
79
|
"type": "git",
|
|
76
|
-
"url": "git+https://github.com/choiruladamm/indo-dev-utils.git"
|
|
80
|
+
"url": "git+https://github.com/choiruladamm/indo-dev-utils.git",
|
|
81
|
+
"directory": "packages/toolkit"
|
|
77
82
|
},
|
|
78
83
|
"bugs": {
|
|
79
84
|
"url": "https://github.com/choiruladamm/indo-dev-utils/issues"
|