pakdatakit 1.1.0 → 2.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 (127) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +909 -666
  3. package/dist/address.cjs +17 -0
  4. package/dist/address.d.cts +36 -0
  5. package/dist/address.d.ts +36 -0
  6. package/dist/address.js +4 -0
  7. package/dist/chunk-3COX5FSL.cjs +1650 -0
  8. package/dist/chunk-432ZYMYV.js +31 -0
  9. package/dist/chunk-43ULDYUP.cjs +235 -0
  10. package/dist/chunk-44YRK7WO.js +231 -0
  11. package/dist/chunk-4EUKCSLW.js +221 -0
  12. package/dist/chunk-4VVFS6FN.cjs +715 -0
  13. package/dist/chunk-6TSKA2PH.js +38 -0
  14. package/dist/chunk-APXP7OK7.cjs +226 -0
  15. package/dist/chunk-AUATLZA5.cjs +168 -0
  16. package/dist/chunk-BSS4Z7NI.cjs +422 -0
  17. package/dist/chunk-CEPNSHIC.js +33 -0
  18. package/dist/chunk-CYJJ7KGC.cjs +108 -0
  19. package/dist/chunk-E47SNBWQ.cjs +224 -0
  20. package/dist/chunk-E7GAK72W.js +20 -0
  21. package/dist/chunk-EEVNLTB4.js +32 -0
  22. package/dist/chunk-ENQ7O7VW.js +32 -0
  23. package/dist/chunk-H6M6L26S.cjs +37 -0
  24. package/dist/chunk-HBOZIITD.js +351 -0
  25. package/dist/chunk-HTCSHHOR.cjs +35 -0
  26. package/dist/chunk-JKE4AMSZ.js +47 -0
  27. package/dist/chunk-JNP27XW2.cjs +22 -0
  28. package/dist/chunk-K6CZFCX6.js +1642 -0
  29. package/dist/chunk-KEHCTYLO.cjs +52 -0
  30. package/dist/chunk-KQKW2ZEK.cjs +18 -0
  31. package/dist/chunk-L2BDDM2W.js +165 -0
  32. package/dist/chunk-L45UXUWX.js +21 -0
  33. package/dist/chunk-LIYNKIKS.js +709 -0
  34. package/dist/chunk-LVHTH4P7.cjs +41 -0
  35. package/dist/chunk-P4CGOJEM.js +16 -0
  36. package/dist/chunk-PHHKIMO2.cjs +35 -0
  37. package/dist/chunk-QQQKISXT.js +223 -0
  38. package/dist/chunk-T3E4B5MJ.js +417 -0
  39. package/dist/chunk-VPBMIYO2.cjs +38 -0
  40. package/dist/chunk-XCXFGTHW.cjs +355 -0
  41. package/dist/chunk-Y6BUGLXU.js +95 -0
  42. package/dist/chunk-YLWZGSFY.cjs +99 -0
  43. package/dist/chunk-YS7MOLK2.cjs +23 -0
  44. package/dist/chunk-Z5JEIQVW.js +102 -0
  45. package/dist/cli.js +78 -2654
  46. package/dist/cnic.cjs +15 -0
  47. package/dist/cnic.d.cts +35 -0
  48. package/dist/cnic.d.ts +35 -0
  49. package/dist/cnic.js +2 -0
  50. package/dist/format.cjs +14 -0
  51. package/dist/format.d.cts +27 -0
  52. package/dist/format.d.ts +27 -0
  53. package/dist/format.js +1 -0
  54. package/dist/geo.cjs +27 -0
  55. package/dist/geo.d.cts +43 -0
  56. package/dist/geo.d.ts +43 -0
  57. package/dist/geo.js +2 -0
  58. package/dist/hijri.cjs +26 -0
  59. package/dist/hijri.d.cts +62 -0
  60. package/dist/hijri.d.ts +62 -0
  61. package/dist/hijri.js +1 -0
  62. package/dist/holidays.cjs +19 -0
  63. package/dist/holidays.d.cts +72 -0
  64. package/dist/holidays.d.ts +72 -0
  65. package/dist/holidays.js +2 -0
  66. package/dist/iban.cjs +15 -0
  67. package/dist/iban.d.cts +21 -0
  68. package/dist/iban.d.ts +21 -0
  69. package/dist/iban.js +2 -0
  70. package/dist/index.cjs +211 -0
  71. package/dist/index.d.cts +16 -0
  72. package/dist/index.d.ts +16 -300
  73. package/dist/index.js +18 -2764
  74. package/dist/networks.cjs +12 -0
  75. package/dist/networks.d.cts +20 -0
  76. package/dist/networks.d.ts +20 -0
  77. package/dist/networks.js +3 -0
  78. package/dist/numbers.cjs +24 -0
  79. package/dist/numbers.d.cts +53 -0
  80. package/dist/numbers.d.ts +53 -0
  81. package/dist/numbers.js +3 -0
  82. package/dist/phone.cjs +29 -0
  83. package/dist/phone.d.cts +56 -0
  84. package/dist/phone.d.ts +56 -0
  85. package/dist/phone.js +4 -0
  86. package/dist/postal.cjs +27 -0
  87. package/dist/postal.d.cts +40 -0
  88. package/dist/postal.d.ts +40 -0
  89. package/dist/postal.js +2 -0
  90. package/dist/raast.cjs +20 -0
  91. package/dist/raast.d.cts +125 -0
  92. package/dist/raast.d.ts +125 -0
  93. package/dist/raast.js +3 -0
  94. package/dist/rules-GxgPiVws.d.cts +7 -0
  95. package/dist/rules-GxgPiVws.d.ts +7 -0
  96. package/dist/tax.cjs +20 -0
  97. package/dist/tax.d.cts +47 -0
  98. package/dist/tax.d.ts +47 -0
  99. package/dist/tax.js +3 -0
  100. package/dist/text.cjs +23 -0
  101. package/dist/text.d.cts +34 -0
  102. package/dist/text.d.ts +34 -0
  103. package/dist/text.js +2 -0
  104. package/dist/valibot.cjs +47 -0
  105. package/dist/valibot.d.cts +22 -0
  106. package/dist/valibot.d.ts +22 -0
  107. package/dist/valibot.js +25 -0
  108. package/dist/whatsapp.cjs +12 -0
  109. package/dist/whatsapp.d.cts +12 -0
  110. package/dist/whatsapp.d.ts +12 -0
  111. package/dist/whatsapp.js +3 -0
  112. package/dist/words.cjs +14 -0
  113. package/dist/words.d.cts +49 -0
  114. package/dist/words.d.ts +49 -0
  115. package/dist/words.js +1 -0
  116. package/dist/yup.cjs +32 -0
  117. package/dist/yup.d.cts +22 -0
  118. package/dist/yup.d.ts +22 -0
  119. package/dist/yup.js +30 -0
  120. package/dist/zod.cjs +27 -0
  121. package/dist/zod.d.cts +22 -0
  122. package/dist/zod.d.ts +22 -0
  123. package/dist/zod.js +25 -0
  124. package/package.json +309 -77
  125. package/dist/cli.d.ts +0 -1
  126. package/dist/cli.js.map +0 -1
  127. package/dist/index.js.map +0 -1
package/dist/yup.cjs ADDED
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ var chunkJNP27XW2_cjs = require('./chunk-JNP27XW2.cjs');
4
+ require('./chunk-BSS4Z7NI.cjs');
5
+ require('./chunk-PHHKIMO2.cjs');
6
+ require('./chunk-YS7MOLK2.cjs');
7
+ require('./chunk-H6M6L26S.cjs');
8
+ require('./chunk-YLWZGSFY.cjs');
9
+ require('./chunk-HTCSHHOR.cjs');
10
+ require('./chunk-E47SNBWQ.cjs');
11
+ require('./chunk-VPBMIYO2.cjs');
12
+ var yup = require('yup');
13
+
14
+ function schema(name) {
15
+ const rule = chunkJNP27XW2_cjs.RULES[name];
16
+ return (options = {}) => yup.string().test(
17
+ `pk-${name}`,
18
+ options.message ?? rule.message,
19
+ // Leave empty values to .required() so optional fields still pass.
20
+ (value) => value === void 0 || value === null || value === "" || rule.test(value)
21
+ );
22
+ }
23
+ var pk = {
24
+ cnic: schema("cnic"),
25
+ phone: schema("phone"),
26
+ iban: schema("iban"),
27
+ ntn: schema("ntn"),
28
+ strn: schema("strn"),
29
+ landline: schema("landline")
30
+ };
31
+
32
+ exports.pk = pk;
package/dist/yup.d.cts ADDED
@@ -0,0 +1,22 @@
1
+ import * as yup from 'yup';
2
+ import { A as AdapterOptions } from './rules-GxgPiVws.cjs';
3
+
4
+ /**
5
+ * Yup schemas for Pakistani identifiers.
6
+ *
7
+ * @example
8
+ * import { object } from 'yup';
9
+ * import { pk } from 'pakdatakit/yup';
10
+ *
11
+ * const form = object({ cnic: pk.cnic().required(), phone: pk.phone() });
12
+ */
13
+ declare const pk: {
14
+ cnic: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
15
+ phone: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
16
+ iban: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
17
+ ntn: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
18
+ strn: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
19
+ landline: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
20
+ };
21
+
22
+ export { AdapterOptions, pk };
package/dist/yup.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ import * as yup from 'yup';
2
+ import { A as AdapterOptions } from './rules-GxgPiVws.js';
3
+
4
+ /**
5
+ * Yup schemas for Pakistani identifiers.
6
+ *
7
+ * @example
8
+ * import { object } from 'yup';
9
+ * import { pk } from 'pakdatakit/yup';
10
+ *
11
+ * const form = object({ cnic: pk.cnic().required(), phone: pk.phone() });
12
+ */
13
+ declare const pk: {
14
+ cnic: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
15
+ phone: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
16
+ iban: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
17
+ ntn: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
18
+ strn: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
19
+ landline: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
20
+ };
21
+
22
+ export { AdapterOptions, pk };
package/dist/yup.js ADDED
@@ -0,0 +1,30 @@
1
+ import { RULES } from './chunk-E7GAK72W.js';
2
+ import './chunk-T3E4B5MJ.js';
3
+ import './chunk-432ZYMYV.js';
4
+ import './chunk-L45UXUWX.js';
5
+ import './chunk-CEPNSHIC.js';
6
+ import './chunk-Y6BUGLXU.js';
7
+ import './chunk-EEVNLTB4.js';
8
+ import './chunk-4EUKCSLW.js';
9
+ import './chunk-ENQ7O7VW.js';
10
+ import { string } from 'yup';
11
+
12
+ function schema(name) {
13
+ const rule = RULES[name];
14
+ return (options = {}) => string().test(
15
+ `pk-${name}`,
16
+ options.message ?? rule.message,
17
+ // Leave empty values to .required() so optional fields still pass.
18
+ (value) => value === void 0 || value === null || value === "" || rule.test(value)
19
+ );
20
+ }
21
+ var pk = {
22
+ cnic: schema("cnic"),
23
+ phone: schema("phone"),
24
+ iban: schema("iban"),
25
+ ntn: schema("ntn"),
26
+ strn: schema("strn"),
27
+ landline: schema("landline")
28
+ };
29
+
30
+ export { pk };
package/dist/zod.cjs ADDED
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ var chunkJNP27XW2_cjs = require('./chunk-JNP27XW2.cjs');
4
+ require('./chunk-BSS4Z7NI.cjs');
5
+ require('./chunk-PHHKIMO2.cjs');
6
+ require('./chunk-YS7MOLK2.cjs');
7
+ require('./chunk-H6M6L26S.cjs');
8
+ require('./chunk-YLWZGSFY.cjs');
9
+ require('./chunk-HTCSHHOR.cjs');
10
+ require('./chunk-E47SNBWQ.cjs');
11
+ require('./chunk-VPBMIYO2.cjs');
12
+ var zod = require('zod');
13
+
14
+ function schema(name) {
15
+ const rule = chunkJNP27XW2_cjs.RULES[name];
16
+ return (options = {}) => zod.z.string().refine(rule.test, { message: options.message ?? rule.message });
17
+ }
18
+ var pk = {
19
+ cnic: schema("cnic"),
20
+ phone: schema("phone"),
21
+ iban: schema("iban"),
22
+ ntn: schema("ntn"),
23
+ strn: schema("strn"),
24
+ landline: schema("landline")
25
+ };
26
+
27
+ exports.pk = pk;
package/dist/zod.d.cts ADDED
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ import { A as AdapterOptions } from './rules-GxgPiVws.cjs';
3
+
4
+ /**
5
+ * Zod schemas for Pakistani identifiers.
6
+ *
7
+ * @example
8
+ * import { z } from 'zod';
9
+ * import { pk } from 'pakdatakit/zod';
10
+ *
11
+ * const form = z.object({ cnic: pk.cnic(), phone: pk.phone() });
12
+ */
13
+ declare const pk: {
14
+ cnic: (options?: AdapterOptions) => z.ZodString;
15
+ phone: (options?: AdapterOptions) => z.ZodString;
16
+ iban: (options?: AdapterOptions) => z.ZodString;
17
+ ntn: (options?: AdapterOptions) => z.ZodString;
18
+ strn: (options?: AdapterOptions) => z.ZodString;
19
+ landline: (options?: AdapterOptions) => z.ZodString;
20
+ };
21
+
22
+ export { AdapterOptions, pk };
package/dist/zod.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ import { A as AdapterOptions } from './rules-GxgPiVws.js';
3
+
4
+ /**
5
+ * Zod schemas for Pakistani identifiers.
6
+ *
7
+ * @example
8
+ * import { z } from 'zod';
9
+ * import { pk } from 'pakdatakit/zod';
10
+ *
11
+ * const form = z.object({ cnic: pk.cnic(), phone: pk.phone() });
12
+ */
13
+ declare const pk: {
14
+ cnic: (options?: AdapterOptions) => z.ZodString;
15
+ phone: (options?: AdapterOptions) => z.ZodString;
16
+ iban: (options?: AdapterOptions) => z.ZodString;
17
+ ntn: (options?: AdapterOptions) => z.ZodString;
18
+ strn: (options?: AdapterOptions) => z.ZodString;
19
+ landline: (options?: AdapterOptions) => z.ZodString;
20
+ };
21
+
22
+ export { AdapterOptions, pk };
package/dist/zod.js ADDED
@@ -0,0 +1,25 @@
1
+ import { RULES } from './chunk-E7GAK72W.js';
2
+ import './chunk-T3E4B5MJ.js';
3
+ import './chunk-432ZYMYV.js';
4
+ import './chunk-L45UXUWX.js';
5
+ import './chunk-CEPNSHIC.js';
6
+ import './chunk-Y6BUGLXU.js';
7
+ import './chunk-EEVNLTB4.js';
8
+ import './chunk-4EUKCSLW.js';
9
+ import './chunk-ENQ7O7VW.js';
10
+ import { z } from 'zod';
11
+
12
+ function schema(name) {
13
+ const rule = RULES[name];
14
+ return (options = {}) => z.string().refine(rule.test, { message: options.message ?? rule.message });
15
+ }
16
+ var pk = {
17
+ cnic: schema("cnic"),
18
+ phone: schema("phone"),
19
+ iban: schema("iban"),
20
+ ntn: schema("ntn"),
21
+ strn: schema("strn"),
22
+ landline: schema("landline")
23
+ };
24
+
25
+ export { pk };
package/package.json CHANGED
@@ -1,77 +1,309 @@
1
- {
2
- "name": "pakdatakit",
3
- "version": "1.1.0",
4
- "description": "Production-ready utility toolkit for Pakistani developers — CNIC, phone, WhatsApp, IBAN, postal codes, address parsing, Hijri dates, Roman Urdu, networks, geography, and formatting",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "bin": {
9
- "pakdatakit": "./dist/cli.js"
10
- },
11
- "exports": {
12
- ".": {
13
- "types": "./dist/index.d.ts",
14
- "import": "./dist/index.js"
15
- }
16
- },
17
- "files": [
18
- "dist"
19
- ],
20
- "sideEffects": false,
21
- "scripts": {
22
- "dev": "vitest",
23
- "dev:build": "tsup --watch",
24
- "build": "tsup",
25
- "generate:data": "node scripts/generate-data.mjs",
26
- "test": "vitest run",
27
- "test:watch": "vitest",
28
- "lint": "eslint src tests",
29
- "format": "prettier --write .",
30
- "format:check": "prettier --check .",
31
- "typecheck": "tsc --noEmit",
32
- "prepublishOnly": "npm run build && npm test"
33
- },
34
- "keywords": [
35
- "pakistan",
36
- "cnic",
37
- "phone",
38
- "mobile",
39
- "network",
40
- "jazz",
41
- "zong",
42
- "telenor",
43
- "ufone",
44
- "whatsapp",
45
- "iban",
46
- "postal",
47
- "fintech",
48
- "ecommerce",
49
- "utilities",
50
- "typescript",
51
- "hijri",
52
- "urdu",
53
- "address"
54
- ],
55
- "author": "",
56
- "license": "MIT",
57
- "repository": {
58
- "type": "git",
59
- "url": "https://github.com/chmuzamil/pakdatakit.git"
60
- },
61
- "engines": {
62
- "node": ">=18"
63
- },
64
- "devDependencies": {
65
- "@eslint/js": "^9.28.0",
66
- "@typescript-eslint/eslint-plugin": "^8.33.0",
67
- "@typescript-eslint/parser": "^8.33.0",
68
- "eslint": "^9.28.0",
69
- "eslint-config-prettier": "^10.1.5",
70
- "globals": "^17.6.0",
71
- "prettier": "^3.5.3",
72
- "tsup": "^8.5.0",
73
- "typescript": "^5.8.3",
74
- "@types/node": "^22.15.21",
75
- "vitest": "^3.2.1"
76
- }
77
- }
1
+ {
2
+ "name": "pakdatakit",
3
+ "version": "2.1.1",
4
+ "description": "Production-ready utility toolkit for Pakistani developers — CNIC, phone, WhatsApp, IBAN, postal codes, address parsing, Hijri dates, Roman Urdu, networks, geography, and formatting",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "bin": {
10
+ "pakdatakit": "./dist/cli.js"
11
+ },
12
+ "exports": {
13
+ ".": {
14
+ "import": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ },
18
+ "require": {
19
+ "types": "./dist/index.d.cts",
20
+ "default": "./dist/index.cjs"
21
+ }
22
+ },
23
+ "./address": {
24
+ "import": {
25
+ "types": "./dist/address.d.ts",
26
+ "default": "./dist/address.js"
27
+ },
28
+ "require": {
29
+ "types": "./dist/address.d.cts",
30
+ "default": "./dist/address.cjs"
31
+ }
32
+ },
33
+ "./cnic": {
34
+ "import": {
35
+ "types": "./dist/cnic.d.ts",
36
+ "default": "./dist/cnic.js"
37
+ },
38
+ "require": {
39
+ "types": "./dist/cnic.d.cts",
40
+ "default": "./dist/cnic.cjs"
41
+ }
42
+ },
43
+ "./format": {
44
+ "import": {
45
+ "types": "./dist/format.d.ts",
46
+ "default": "./dist/format.js"
47
+ },
48
+ "require": {
49
+ "types": "./dist/format.d.cts",
50
+ "default": "./dist/format.cjs"
51
+ }
52
+ },
53
+ "./geo": {
54
+ "import": {
55
+ "types": "./dist/geo.d.ts",
56
+ "default": "./dist/geo.js"
57
+ },
58
+ "require": {
59
+ "types": "./dist/geo.d.cts",
60
+ "default": "./dist/geo.cjs"
61
+ }
62
+ },
63
+ "./hijri": {
64
+ "import": {
65
+ "types": "./dist/hijri.d.ts",
66
+ "default": "./dist/hijri.js"
67
+ },
68
+ "require": {
69
+ "types": "./dist/hijri.d.cts",
70
+ "default": "./dist/hijri.cjs"
71
+ }
72
+ },
73
+ "./holidays": {
74
+ "import": {
75
+ "types": "./dist/holidays.d.ts",
76
+ "default": "./dist/holidays.js"
77
+ },
78
+ "require": {
79
+ "types": "./dist/holidays.d.cts",
80
+ "default": "./dist/holidays.cjs"
81
+ }
82
+ },
83
+ "./iban": {
84
+ "import": {
85
+ "types": "./dist/iban.d.ts",
86
+ "default": "./dist/iban.js"
87
+ },
88
+ "require": {
89
+ "types": "./dist/iban.d.cts",
90
+ "default": "./dist/iban.cjs"
91
+ }
92
+ },
93
+ "./networks": {
94
+ "import": {
95
+ "types": "./dist/networks.d.ts",
96
+ "default": "./dist/networks.js"
97
+ },
98
+ "require": {
99
+ "types": "./dist/networks.d.cts",
100
+ "default": "./dist/networks.cjs"
101
+ }
102
+ },
103
+ "./numbers": {
104
+ "import": {
105
+ "types": "./dist/numbers.d.ts",
106
+ "default": "./dist/numbers.js"
107
+ },
108
+ "require": {
109
+ "types": "./dist/numbers.d.cts",
110
+ "default": "./dist/numbers.cjs"
111
+ }
112
+ },
113
+ "./phone": {
114
+ "import": {
115
+ "types": "./dist/phone.d.ts",
116
+ "default": "./dist/phone.js"
117
+ },
118
+ "require": {
119
+ "types": "./dist/phone.d.cts",
120
+ "default": "./dist/phone.cjs"
121
+ }
122
+ },
123
+ "./postal": {
124
+ "import": {
125
+ "types": "./dist/postal.d.ts",
126
+ "default": "./dist/postal.js"
127
+ },
128
+ "require": {
129
+ "types": "./dist/postal.d.cts",
130
+ "default": "./dist/postal.cjs"
131
+ }
132
+ },
133
+ "./raast": {
134
+ "import": {
135
+ "types": "./dist/raast.d.ts",
136
+ "default": "./dist/raast.js"
137
+ },
138
+ "require": {
139
+ "types": "./dist/raast.d.cts",
140
+ "default": "./dist/raast.cjs"
141
+ }
142
+ },
143
+ "./tax": {
144
+ "import": {
145
+ "types": "./dist/tax.d.ts",
146
+ "default": "./dist/tax.js"
147
+ },
148
+ "require": {
149
+ "types": "./dist/tax.d.cts",
150
+ "default": "./dist/tax.cjs"
151
+ }
152
+ },
153
+ "./text": {
154
+ "import": {
155
+ "types": "./dist/text.d.ts",
156
+ "default": "./dist/text.js"
157
+ },
158
+ "require": {
159
+ "types": "./dist/text.d.cts",
160
+ "default": "./dist/text.cjs"
161
+ }
162
+ },
163
+ "./whatsapp": {
164
+ "import": {
165
+ "types": "./dist/whatsapp.d.ts",
166
+ "default": "./dist/whatsapp.js"
167
+ },
168
+ "require": {
169
+ "types": "./dist/whatsapp.d.cts",
170
+ "default": "./dist/whatsapp.cjs"
171
+ }
172
+ },
173
+ "./words": {
174
+ "import": {
175
+ "types": "./dist/words.d.ts",
176
+ "default": "./dist/words.js"
177
+ },
178
+ "require": {
179
+ "types": "./dist/words.d.cts",
180
+ "default": "./dist/words.cjs"
181
+ }
182
+ },
183
+ "./valibot": {
184
+ "import": {
185
+ "types": "./dist/valibot.d.ts",
186
+ "default": "./dist/valibot.js"
187
+ },
188
+ "require": {
189
+ "types": "./dist/valibot.d.cts",
190
+ "default": "./dist/valibot.cjs"
191
+ }
192
+ },
193
+ "./yup": {
194
+ "import": {
195
+ "types": "./dist/yup.d.ts",
196
+ "default": "./dist/yup.js"
197
+ },
198
+ "require": {
199
+ "types": "./dist/yup.d.cts",
200
+ "default": "./dist/yup.cjs"
201
+ }
202
+ },
203
+ "./zod": {
204
+ "import": {
205
+ "types": "./dist/zod.d.ts",
206
+ "default": "./dist/zod.js"
207
+ },
208
+ "require": {
209
+ "types": "./dist/zod.d.cts",
210
+ "default": "./dist/zod.cjs"
211
+ }
212
+ },
213
+ "./package.json": "./package.json"
214
+ },
215
+ "files": [
216
+ "dist"
217
+ ],
218
+ "sideEffects": false,
219
+ "scripts": {
220
+ "dev": "vitest",
221
+ "dev:build": "tsup --watch",
222
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsup",
223
+ "generate:data": "node scripts/generate-data.mjs",
224
+ "test": "vitest run",
225
+ "test:watch": "vitest",
226
+ "lint": "eslint src tests",
227
+ "format": "prettier --write .",
228
+ "format:check": "prettier --check .",
229
+ "typecheck": "tsc --noEmit",
230
+ "prepublishOnly": "npm run lint && npm run typecheck && npm test && npm run build"
231
+ },
232
+ "keywords": [
233
+ "pakistan",
234
+ "cnic",
235
+ "phone",
236
+ "mobile",
237
+ "network",
238
+ "jazz",
239
+ "zong",
240
+ "telenor",
241
+ "ufone",
242
+ "whatsapp",
243
+ "iban",
244
+ "postal",
245
+ "fintech",
246
+ "ecommerce",
247
+ "utilities",
248
+ "typescript",
249
+ "hijri",
250
+ "urdu",
251
+ "address",
252
+ "ntn",
253
+ "strn",
254
+ "raast",
255
+ "qr",
256
+ "holidays",
257
+ "zod",
258
+ "valibot",
259
+ "yup",
260
+ "amount-in-words",
261
+ "landline"
262
+ ],
263
+ "author": "Muzamil Chaudhery",
264
+ "homepage": "https://github.com/chmuzamil/pakdatakit#readme",
265
+ "bugs": {
266
+ "url": "https://github.com/chmuzamil/pakdatakit/issues"
267
+ },
268
+ "license": "MIT",
269
+ "repository": {
270
+ "type": "git",
271
+ "url": "https://github.com/chmuzamil/pakdatakit.git"
272
+ },
273
+ "engines": {
274
+ "node": ">=20"
275
+ },
276
+ "devDependencies": {
277
+ "@eslint/js": "^9.28.0",
278
+ "@types/node": "^22.15.21",
279
+ "@typescript-eslint/eslint-plugin": "^8.33.0",
280
+ "@typescript-eslint/parser": "^8.33.0",
281
+ "eslint": "^9.28.0",
282
+ "eslint-config-prettier": "^10.1.5",
283
+ "globals": "^17.6.0",
284
+ "libphonenumber-js": "^1.13.15",
285
+ "prettier": "^3.5.3",
286
+ "tsup": "^8.5.0",
287
+ "typescript": "^5.8.3",
288
+ "valibot": "^1.5.0",
289
+ "vitest": "^3.2.1",
290
+ "yup": "^1.7.1",
291
+ "zod": "^4.6.7"
292
+ },
293
+ "peerDependencies": {
294
+ "valibot": ">=1.0.0",
295
+ "yup": ">=1.0.0",
296
+ "zod": "^3.23.0 || ^4.0.0"
297
+ },
298
+ "peerDependenciesMeta": {
299
+ "valibot": {
300
+ "optional": true
301
+ },
302
+ "yup": {
303
+ "optional": true
304
+ },
305
+ "zod": {
306
+ "optional": true
307
+ }
308
+ }
309
+ }
package/dist/cli.d.ts DELETED
@@ -1 +0,0 @@
1
- #!/usr/bin/env node