utilitify-core 1.0.0

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 (147) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +338 -0
  3. package/dist/async.cjs +25 -0
  4. package/dist/async.cjs.map +1 -0
  5. package/dist/async.d.cts +104 -0
  6. package/dist/async.d.ts +104 -0
  7. package/dist/async.js +4 -0
  8. package/dist/async.js.map +1 -0
  9. package/dist/chunk-2ICNRTSN.cjs +346 -0
  10. package/dist/chunk-2ICNRTSN.cjs.map +1 -0
  11. package/dist/chunk-3DPF72DY.js +170 -0
  12. package/dist/chunk-3DPF72DY.js.map +1 -0
  13. package/dist/chunk-4CV4JOE5.js +24 -0
  14. package/dist/chunk-4CV4JOE5.js.map +1 -0
  15. package/dist/chunk-4SLYNSLH.cjs +783 -0
  16. package/dist/chunk-4SLYNSLH.cjs.map +1 -0
  17. package/dist/chunk-5WP7DWCG.js +1285 -0
  18. package/dist/chunk-5WP7DWCG.js.map +1 -0
  19. package/dist/chunk-BMQ6YPKV.js +876 -0
  20. package/dist/chunk-BMQ6YPKV.js.map +1 -0
  21. package/dist/chunk-BZCMWUKS.cjs +479 -0
  22. package/dist/chunk-BZCMWUKS.cjs.map +1 -0
  23. package/dist/chunk-C5R744DY.cjs +173 -0
  24. package/dist/chunk-C5R744DY.cjs.map +1 -0
  25. package/dist/chunk-C75J62CV.cjs +913 -0
  26. package/dist/chunk-C75J62CV.cjs.map +1 -0
  27. package/dist/chunk-CZLDE2OZ.cjs +28 -0
  28. package/dist/chunk-CZLDE2OZ.cjs.map +1 -0
  29. package/dist/chunk-DSMB6AF6.cjs +193 -0
  30. package/dist/chunk-DSMB6AF6.cjs.map +1 -0
  31. package/dist/chunk-ETWGPOPY.js +426 -0
  32. package/dist/chunk-ETWGPOPY.js.map +1 -0
  33. package/dist/chunk-FQBPVN63.cjs +403 -0
  34. package/dist/chunk-FQBPVN63.cjs.map +1 -0
  35. package/dist/chunk-G4GYQGTW.cjs +178 -0
  36. package/dist/chunk-G4GYQGTW.cjs.map +1 -0
  37. package/dist/chunk-GFDMZDMI.js +486 -0
  38. package/dist/chunk-GFDMZDMI.js.map +1 -0
  39. package/dist/chunk-HOTOYIPB.js +171 -0
  40. package/dist/chunk-HOTOYIPB.js.map +1 -0
  41. package/dist/chunk-HYADH4ZX.js +176 -0
  42. package/dist/chunk-HYADH4ZX.js.map +1 -0
  43. package/dist/chunk-JBN7C5WE.js +255 -0
  44. package/dist/chunk-JBN7C5WE.js.map +1 -0
  45. package/dist/chunk-JNCTPFTD.cjs +25 -0
  46. package/dist/chunk-JNCTPFTD.cjs.map +1 -0
  47. package/dist/chunk-N3BH3BV7.js +21 -0
  48. package/dist/chunk-N3BH3BV7.js.map +1 -0
  49. package/dist/chunk-NFPGAVRQ.js +749 -0
  50. package/dist/chunk-NFPGAVRQ.js.map +1 -0
  51. package/dist/chunk-OFFRGRBN.cjs +1332 -0
  52. package/dist/chunk-OFFRGRBN.cjs.map +1 -0
  53. package/dist/chunk-OZLKYIZL.cjs +490 -0
  54. package/dist/chunk-OZLKYIZL.cjs.map +1 -0
  55. package/dist/chunk-P3NUK46X.js +145 -0
  56. package/dist/chunk-P3NUK46X.js.map +1 -0
  57. package/dist/chunk-P7P2B7ZI.cjs +429 -0
  58. package/dist/chunk-P7P2B7ZI.cjs.map +1 -0
  59. package/dist/chunk-PB6SKSJN.cjs +150 -0
  60. package/dist/chunk-PB6SKSJN.cjs.map +1 -0
  61. package/dist/chunk-R3IXCJR7.js +378 -0
  62. package/dist/chunk-R3IXCJR7.js.map +1 -0
  63. package/dist/chunk-SD6P3WEJ.js +324 -0
  64. package/dist/chunk-SD6P3WEJ.js.map +1 -0
  65. package/dist/chunk-YSCHP26P.js +451 -0
  66. package/dist/chunk-YSCHP26P.js.map +1 -0
  67. package/dist/chunk-ZLMPRPCY.cjs +274 -0
  68. package/dist/chunk-ZLMPRPCY.cjs.map +1 -0
  69. package/dist/common-CBDYNJeh.d.cts +48 -0
  70. package/dist/common-CBDYNJeh.d.ts +48 -0
  71. package/dist/constants.cjs +42 -0
  72. package/dist/constants.cjs.map +1 -0
  73. package/dist/constants.d.cts +60 -0
  74. package/dist/constants.d.ts +60 -0
  75. package/dist/constants.js +5 -0
  76. package/dist/constants.js.map +1 -0
  77. package/dist/country/index.cjs +154 -0
  78. package/dist/country/index.cjs.map +1 -0
  79. package/dist/country/index.d.cts +1 -0
  80. package/dist/country/index.d.ts +1 -0
  81. package/dist/country/index.js +5 -0
  82. package/dist/country/index.js.map +1 -0
  83. package/dist/date/index.cjs +117 -0
  84. package/dist/date/index.cjs.map +1 -0
  85. package/dist/date/index.d.cts +283 -0
  86. package/dist/date/index.d.ts +283 -0
  87. package/dist/date/index.js +4 -0
  88. package/dist/date/index.js.map +1 -0
  89. package/dist/environment/index.cjs +73 -0
  90. package/dist/environment/index.cjs.map +1 -0
  91. package/dist/environment/index.d.cts +127 -0
  92. package/dist/environment/index.d.ts +127 -0
  93. package/dist/environment/index.js +4 -0
  94. package/dist/environment/index.js.map +1 -0
  95. package/dist/form/index.cjs +81 -0
  96. package/dist/form/index.cjs.map +1 -0
  97. package/dist/form/index.d.cts +227 -0
  98. package/dist/form/index.d.ts +227 -0
  99. package/dist/form/index.js +4 -0
  100. package/dist/form/index.js.map +1 -0
  101. package/dist/i18n.cjs +37 -0
  102. package/dist/i18n.cjs.map +1 -0
  103. package/dist/i18n.d.cts +102 -0
  104. package/dist/i18n.d.ts +102 -0
  105. package/dist/i18n.js +4 -0
  106. package/dist/i18n.js.map +1 -0
  107. package/dist/index-BXBmBHyL.d.ts +718 -0
  108. package/dist/index-BYsUCP3u.d.cts +718 -0
  109. package/dist/index-Cl26FrAZ.d.cts +362 -0
  110. package/dist/index-Cl26FrAZ.d.ts +362 -0
  111. package/dist/index.cjs +1265 -0
  112. package/dist/index.cjs.map +1 -0
  113. package/dist/index.d.cts +205 -0
  114. package/dist/index.d.ts +205 -0
  115. package/dist/index.js +277 -0
  116. package/dist/index.js.map +1 -0
  117. package/dist/schema.cjs +13 -0
  118. package/dist/schema.cjs.map +1 -0
  119. package/dist/schema.d.cts +84 -0
  120. package/dist/schema.d.ts +84 -0
  121. package/dist/schema.js +4 -0
  122. package/dist/schema.js.map +1 -0
  123. package/dist/security/index.cjs +94 -0
  124. package/dist/security/index.cjs.map +1 -0
  125. package/dist/security/index.d.cts +216 -0
  126. package/dist/security/index.d.ts +216 -0
  127. package/dist/security/index.js +5 -0
  128. package/dist/security/index.js.map +1 -0
  129. package/dist/string/index.cjs +153 -0
  130. package/dist/string/index.cjs.map +1 -0
  131. package/dist/string/index.d.cts +471 -0
  132. package/dist/string/index.d.ts +471 -0
  133. package/dist/string/index.js +4 -0
  134. package/dist/string/index.js.map +1 -0
  135. package/dist/transform/index.cjs +105 -0
  136. package/dist/transform/index.cjs.map +1 -0
  137. package/dist/transform/index.d.cts +271 -0
  138. package/dist/transform/index.d.ts +271 -0
  139. package/dist/transform/index.js +4 -0
  140. package/dist/transform/index.js.map +1 -0
  141. package/dist/validators/index.cjs +195 -0
  142. package/dist/validators/index.cjs.map +1 -0
  143. package/dist/validators/index.d.cts +2 -0
  144. package/dist/validators/index.d.ts +2 -0
  145. package/dist/validators/index.js +6 -0
  146. package/dist/validators/index.js.map +1 -0
  147. package/package.json +229 -0
@@ -0,0 +1,195 @@
1
+ 'use strict';
2
+
3
+ var chunkOFFRGRBN_cjs = require('../chunk-OFFRGRBN.cjs');
4
+ require('../chunk-OZLKYIZL.cjs');
5
+ require('../chunk-P7P2B7ZI.cjs');
6
+ require('../chunk-CZLDE2OZ.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "detectCardType", {
11
+ enumerable: true,
12
+ get: function () { return chunkOFFRGRBN_cjs.detectCardType; }
13
+ });
14
+ Object.defineProperty(exports, "detectScript", {
15
+ enumerable: true,
16
+ get: function () { return chunkOFFRGRBN_cjs.detectScript; }
17
+ });
18
+ Object.defineProperty(exports, "formatCardNumber", {
19
+ enumerable: true,
20
+ get: function () { return chunkOFFRGRBN_cjs.formatCardNumber; }
21
+ });
22
+ Object.defineProperty(exports, "formatName", {
23
+ enumerable: true,
24
+ get: function () { return chunkOFFRGRBN_cjs.formatName; }
25
+ });
26
+ Object.defineProperty(exports, "formatPhone", {
27
+ enumerable: true,
28
+ get: function () { return chunkOFFRGRBN_cjs.formatPhone; }
29
+ });
30
+ Object.defineProperty(exports, "getCardTypeFromPrefix", {
31
+ enumerable: true,
32
+ get: function () { return chunkOFFRGRBN_cjs.getCardTypeFromPrefix; }
33
+ });
34
+ Object.defineProperty(exports, "getEmailDomain", {
35
+ enumerable: true,
36
+ get: function () { return chunkOFFRGRBN_cjs.getEmailDomain; }
37
+ });
38
+ Object.defineProperty(exports, "getIpVersion", {
39
+ enumerable: true,
40
+ get: function () { return chunkOFFRGRBN_cjs.getIpVersion; }
41
+ });
42
+ Object.defineProperty(exports, "getUrlDomain", {
43
+ enumerable: true,
44
+ get: function () { return chunkOFFRGRBN_cjs.getUrlDomain; }
45
+ });
46
+ Object.defineProperty(exports, "isDangerousUrl", {
47
+ enumerable: true,
48
+ get: function () { return chunkOFFRGRBN_cjs.isDangerousUrl; }
49
+ });
50
+ Object.defineProperty(exports, "isDataUrl", {
51
+ enumerable: true,
52
+ get: function () { return chunkOFFRGRBN_cjs.isDataUrl; }
53
+ });
54
+ Object.defineProperty(exports, "isDisposableEmail", {
55
+ enumerable: true,
56
+ get: function () { return chunkOFFRGRBN_cjs.isDisposableEmail; }
57
+ });
58
+ Object.defineProperty(exports, "isHttpsUrl", {
59
+ enumerable: true,
60
+ get: function () { return chunkOFFRGRBN_cjs.isHttpsUrl; }
61
+ });
62
+ Object.defineProperty(exports, "isLoopbackIp", {
63
+ enumerable: true,
64
+ get: function () { return chunkOFFRGRBN_cjs.isLoopbackIp; }
65
+ });
66
+ Object.defineProperty(exports, "isPrivateIp", {
67
+ enumerable: true,
68
+ get: function () { return chunkOFFRGRBN_cjs.isPrivateIp; }
69
+ });
70
+ Object.defineProperty(exports, "isReservedUsername", {
71
+ enumerable: true,
72
+ get: function () { return chunkOFFRGRBN_cjs.isReservedUsername; }
73
+ });
74
+ Object.defineProperty(exports, "isValidCVV", {
75
+ enumerable: true,
76
+ get: function () { return chunkOFFRGRBN_cjs.isValidCVV; }
77
+ });
78
+ Object.defineProperty(exports, "isValidCidr", {
79
+ enumerable: true,
80
+ get: function () { return chunkOFFRGRBN_cjs.isValidCidr; }
81
+ });
82
+ Object.defineProperty(exports, "isValidCreditCard", {
83
+ enumerable: true,
84
+ get: function () { return chunkOFFRGRBN_cjs.isValidCreditCard; }
85
+ });
86
+ Object.defineProperty(exports, "isValidEmail", {
87
+ enumerable: true,
88
+ get: function () { return chunkOFFRGRBN_cjs.isValidEmail; }
89
+ });
90
+ Object.defineProperty(exports, "isValidExpiry", {
91
+ enumerable: true,
92
+ get: function () { return chunkOFFRGRBN_cjs.isValidExpiry; }
93
+ });
94
+ Object.defineProperty(exports, "isValidIP", {
95
+ enumerable: true,
96
+ get: function () { return chunkOFFRGRBN_cjs.isValidIP; }
97
+ });
98
+ Object.defineProperty(exports, "isValidIPv4", {
99
+ enumerable: true,
100
+ get: function () { return chunkOFFRGRBN_cjs.isValidIPv4; }
101
+ });
102
+ Object.defineProperty(exports, "isValidIPv6", {
103
+ enumerable: true,
104
+ get: function () { return chunkOFFRGRBN_cjs.isValidIPv6; }
105
+ });
106
+ Object.defineProperty(exports, "isValidName", {
107
+ enumerable: true,
108
+ get: function () { return chunkOFFRGRBN_cjs.isValidName; }
109
+ });
110
+ Object.defineProperty(exports, "isValidPhone", {
111
+ enumerable: true,
112
+ get: function () { return chunkOFFRGRBN_cjs.isValidPhone; }
113
+ });
114
+ Object.defineProperty(exports, "isValidUrl", {
115
+ enumerable: true,
116
+ get: function () { return chunkOFFRGRBN_cjs.isValidUrl; }
117
+ });
118
+ Object.defineProperty(exports, "isValidUsername", {
119
+ enumerable: true,
120
+ get: function () { return chunkOFFRGRBN_cjs.isValidUsername; }
121
+ });
122
+ Object.defineProperty(exports, "luhnCheck", {
123
+ enumerable: true,
124
+ get: function () { return chunkOFFRGRBN_cjs.luhnCheck; }
125
+ });
126
+ Object.defineProperty(exports, "maskCardNumber", {
127
+ enumerable: true,
128
+ get: function () { return chunkOFFRGRBN_cjs.maskCardNumber; }
129
+ });
130
+ Object.defineProperty(exports, "normalizeEmail", {
131
+ enumerable: true,
132
+ get: function () { return chunkOFFRGRBN_cjs.normalizeEmail; }
133
+ });
134
+ Object.defineProperty(exports, "normalizeUrl", {
135
+ enumerable: true,
136
+ get: function () { return chunkOFFRGRBN_cjs.normalizeUrl; }
137
+ });
138
+ Object.defineProperty(exports, "parsePhone", {
139
+ enumerable: true,
140
+ get: function () { return chunkOFFRGRBN_cjs.parsePhone; }
141
+ });
142
+ Object.defineProperty(exports, "sanitizeName", {
143
+ enumerable: true,
144
+ get: function () { return chunkOFFRGRBN_cjs.sanitizeName; }
145
+ });
146
+ Object.defineProperty(exports, "sanitizeUsername", {
147
+ enumerable: true,
148
+ get: function () { return chunkOFFRGRBN_cjs.sanitizeUsername; }
149
+ });
150
+ Object.defineProperty(exports, "splitName", {
151
+ enumerable: true,
152
+ get: function () { return chunkOFFRGRBN_cjs.splitName; }
153
+ });
154
+ Object.defineProperty(exports, "suggestUsernames", {
155
+ enumerable: true,
156
+ get: function () { return chunkOFFRGRBN_cjs.suggestUsernames; }
157
+ });
158
+ Object.defineProperty(exports, "validateCreditCard", {
159
+ enumerable: true,
160
+ get: function () { return chunkOFFRGRBN_cjs.validateCreditCard; }
161
+ });
162
+ Object.defineProperty(exports, "validateEmail", {
163
+ enumerable: true,
164
+ get: function () { return chunkOFFRGRBN_cjs.validateEmail; }
165
+ });
166
+ Object.defineProperty(exports, "validateIBAN", {
167
+ enumerable: true,
168
+ get: function () { return chunkOFFRGRBN_cjs.validateIBAN; }
169
+ });
170
+ Object.defineProperty(exports, "validateIp", {
171
+ enumerable: true,
172
+ get: function () { return chunkOFFRGRBN_cjs.validateIp; }
173
+ });
174
+ Object.defineProperty(exports, "validateName", {
175
+ enumerable: true,
176
+ get: function () { return chunkOFFRGRBN_cjs.validateName; }
177
+ });
178
+ Object.defineProperty(exports, "validatePhone", {
179
+ enumerable: true,
180
+ get: function () { return chunkOFFRGRBN_cjs.validatePhone; }
181
+ });
182
+ Object.defineProperty(exports, "validateUrl", {
183
+ enumerable: true,
184
+ get: function () { return chunkOFFRGRBN_cjs.validateUrl; }
185
+ });
186
+ Object.defineProperty(exports, "validateUsername", {
187
+ enumerable: true,
188
+ get: function () { return chunkOFFRGRBN_cjs.validateUsername; }
189
+ });
190
+ Object.defineProperty(exports, "validateVAT", {
191
+ enumerable: true,
192
+ get: function () { return chunkOFFRGRBN_cjs.validateVAT; }
193
+ });
194
+ //# sourceMappingURL=index.cjs.map
195
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,2 @@
1
+ export { Z as CardType, X as CreditCardOptions, Y as CreditCardValidationResult, aa as IbanOptions, a6 as IpOptions, a7 as IpValidationResult, J as UrlOptions, K as UrlValidationResult, ab as VatOptions, O as detectCardType, m as detectScript, T as formatCardNumber, o as formatName, t as formatPhone, Q as getCardTypeFromPrefix, j as getEmailDomain, a4 as getIpVersion, F as getUrlDomain, I as isDangerousUrl, H as isDataUrl, h as isDisposableEmail, D as isHttpsUrl, a3 as isLoopbackIp, a2 as isPrivateIp, y as isReservedUsername, V as isValidCVV, a5 as isValidCidr, M as isValidCreditCard, i as isValidEmail, W as isValidExpiry, a1 as isValidIP, $ as isValidIPv4, a0 as isValidIPv6, l as isValidName, r as isValidPhone, C as isValidUrl, x as isValidUsername, R as luhnCheck, S as maskCardNumber, n as normalizeEmail, G as normalizeUrl, u as parsePhone, s as sanitizeName, z as sanitizeUsername, p as splitName, A as suggestUsernames, L as validateCreditCard, v as validateEmail, a8 as validateIBAN, _ as validateIp, k as validateName, q as validatePhone, B as validateUrl, w as validateUsername, a9 as validateVAT } from '../index-BYsUCP3u.cjs';
2
+ import '../common-CBDYNJeh.cjs';
@@ -0,0 +1,2 @@
1
+ export { Z as CardType, X as CreditCardOptions, Y as CreditCardValidationResult, aa as IbanOptions, a6 as IpOptions, a7 as IpValidationResult, J as UrlOptions, K as UrlValidationResult, ab as VatOptions, O as detectCardType, m as detectScript, T as formatCardNumber, o as formatName, t as formatPhone, Q as getCardTypeFromPrefix, j as getEmailDomain, a4 as getIpVersion, F as getUrlDomain, I as isDangerousUrl, H as isDataUrl, h as isDisposableEmail, D as isHttpsUrl, a3 as isLoopbackIp, a2 as isPrivateIp, y as isReservedUsername, V as isValidCVV, a5 as isValidCidr, M as isValidCreditCard, i as isValidEmail, W as isValidExpiry, a1 as isValidIP, $ as isValidIPv4, a0 as isValidIPv6, l as isValidName, r as isValidPhone, C as isValidUrl, x as isValidUsername, R as luhnCheck, S as maskCardNumber, n as normalizeEmail, G as normalizeUrl, u as parsePhone, s as sanitizeName, z as sanitizeUsername, p as splitName, A as suggestUsernames, L as validateCreditCard, v as validateEmail, a8 as validateIBAN, _ as validateIp, k as validateName, q as validatePhone, B as validateUrl, w as validateUsername, a9 as validateVAT } from '../index-BXBmBHyL.js';
2
+ import '../common-CBDYNJeh.js';
@@ -0,0 +1,6 @@
1
+ export { detectCardType, detectScript, formatCardNumber, formatName, formatPhone, getCardTypeFromPrefix, getEmailDomain, getIpVersion, getUrlDomain, isDangerousUrl, isDataUrl, isDisposableEmail, isHttpsUrl, isLoopbackIp, isPrivateIp, isReservedUsername, isValidCVV, isValidCidr, isValidCreditCard, isValidEmail, isValidExpiry, isValidIP, isValidIPv4, isValidIPv6, isValidName, isValidPhone, isValidUrl, isValidUsername, luhnCheck, maskCardNumber, normalizeEmail, normalizeUrl, parsePhone, sanitizeName, sanitizeUsername, splitName, suggestUsernames, validateCreditCard, validateEmail, validateIBAN, validateIp, validateName, validatePhone, validateUrl, validateUsername, validateVAT } from '../chunk-5WP7DWCG.js';
2
+ import '../chunk-GFDMZDMI.js';
3
+ import '../chunk-ETWGPOPY.js';
4
+ import '../chunk-4CV4JOE5.js';
5
+ //# sourceMappingURL=index.js.map
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
package/package.json ADDED
@@ -0,0 +1,229 @@
1
+ {
2
+ "name": "utilitify-core",
3
+ "version": "1.0.0",
4
+ "description": "Comprehensive validation & utility SDK for JavaScript/TypeScript - User data validation, country utilities, string helpers, security, and more.",
5
+ "author": "Fahad",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "main": "./dist/index.cjs",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "require": {
18
+ "types": "./dist/index.d.cts",
19
+ "default": "./dist/index.cjs"
20
+ }
21
+ },
22
+ "./validators": {
23
+ "import": {
24
+ "types": "./dist/validators/index.d.ts",
25
+ "default": "./dist/validators/index.js"
26
+ },
27
+ "require": {
28
+ "types": "./dist/validators/index.d.cts",
29
+ "default": "./dist/validators/index.cjs"
30
+ }
31
+ },
32
+ "./country": {
33
+ "import": {
34
+ "types": "./dist/country/index.d.ts",
35
+ "default": "./dist/country/index.js"
36
+ },
37
+ "require": {
38
+ "types": "./dist/country/index.d.cts",
39
+ "default": "./dist/country/index.cjs"
40
+ }
41
+ },
42
+ "./string": {
43
+ "import": {
44
+ "types": "./dist/string/index.d.ts",
45
+ "default": "./dist/string/index.js"
46
+ },
47
+ "require": {
48
+ "types": "./dist/string/index.d.cts",
49
+ "default": "./dist/string/index.cjs"
50
+ }
51
+ },
52
+ "./date": {
53
+ "import": {
54
+ "types": "./dist/date/index.d.ts",
55
+ "default": "./dist/date/index.js"
56
+ },
57
+ "require": {
58
+ "types": "./dist/date/index.d.cts",
59
+ "default": "./dist/date/index.cjs"
60
+ }
61
+ },
62
+ "./security": {
63
+ "import": {
64
+ "types": "./dist/security/index.d.ts",
65
+ "default": "./dist/security/index.js"
66
+ },
67
+ "require": {
68
+ "types": "./dist/security/index.d.cts",
69
+ "default": "./dist/security/index.cjs"
70
+ }
71
+ },
72
+ "./transform": {
73
+ "import": {
74
+ "types": "./dist/transform/index.d.ts",
75
+ "default": "./dist/transform/index.js"
76
+ },
77
+ "require": {
78
+ "types": "./dist/transform/index.d.cts",
79
+ "default": "./dist/transform/index.cjs"
80
+ }
81
+ },
82
+ "./form": {
83
+ "import": {
84
+ "types": "./dist/form/index.d.ts",
85
+ "default": "./dist/form/index.js"
86
+ },
87
+ "require": {
88
+ "types": "./dist/form/index.d.cts",
89
+ "default": "./dist/form/index.cjs"
90
+ }
91
+ },
92
+ "./environment": {
93
+ "import": {
94
+ "types": "./dist/environment/index.d.ts",
95
+ "default": "./dist/environment/index.js"
96
+ },
97
+ "require": {
98
+ "types": "./dist/environment/index.d.cts",
99
+ "default": "./dist/environment/index.cjs"
100
+ }
101
+ },
102
+ "./async": {
103
+ "import": {
104
+ "types": "./dist/async.d.ts",
105
+ "default": "./dist/async.js"
106
+ },
107
+ "require": {
108
+ "types": "./dist/async.d.cts",
109
+ "default": "./dist/async.cjs"
110
+ }
111
+ },
112
+ "./i18n": {
113
+ "import": {
114
+ "types": "./dist/i18n.d.ts",
115
+ "default": "./dist/i18n.js"
116
+ },
117
+ "require": {
118
+ "types": "./dist/i18n.d.cts",
119
+ "default": "./dist/i18n.cjs"
120
+ }
121
+ },
122
+ "./constants": {
123
+ "import": {
124
+ "types": "./dist/constants.d.ts",
125
+ "default": "./dist/constants.js"
126
+ },
127
+ "require": {
128
+ "types": "./dist/constants.d.cts",
129
+ "default": "./dist/constants.cjs"
130
+ }
131
+ },
132
+ "./schema": {
133
+ "import": {
134
+ "types": "./dist/schema.d.ts",
135
+ "default": "./dist/schema.js"
136
+ },
137
+ "require": {
138
+ "types": "./dist/schema.d.cts",
139
+ "default": "./dist/schema.cjs"
140
+ }
141
+ }
142
+ },
143
+ "sideEffects": false,
144
+ "files": [
145
+ "dist",
146
+ "README.md",
147
+ "LICENSE"
148
+ ],
149
+ "scripts": {
150
+ "build": "tsup",
151
+ "dev": "tsup --watch",
152
+ "test": "vitest",
153
+ "test:run": "vitest run",
154
+ "test:coverage": "vitest run --coverage",
155
+ "benchmark": "vitest bench",
156
+ "size": "size-limit",
157
+ "lint": "eslint src --ext .ts",
158
+ "lint:fix": "eslint src --ext .ts --fix",
159
+ "format": "prettier --write \"src/**/*.ts\"",
160
+ "typecheck": "tsc --noEmit",
161
+ "prepublishOnly": "npm run build && npm run test:run",
162
+ "clean": "rimraf dist"
163
+ },
164
+ "keywords": [
165
+ "validation",
166
+ "validator",
167
+ "utilities",
168
+ "typescript",
169
+ "email-validation",
170
+ "phone-validation",
171
+ "password-strength",
172
+ "country-codes",
173
+ "date-utils",
174
+ "string-utils",
175
+ "security",
176
+ "sanitization",
177
+ "form-validation",
178
+ "uuid",
179
+ "slug",
180
+ "mask"
181
+ ],
182
+ "repository": {
183
+ "type": "git",
184
+ "url": "https://github.com/muhammadfahaddev/utilitify.git"
185
+ },
186
+ "bugs": {
187
+ "url": "https://github.com/muhammadfahaddev/utilitify/issues"
188
+ },
189
+ "homepage": "https://github.com/muhammadfahaddev/utilitify#readme",
190
+ "engines": {
191
+ "node": ">=18.0.0"
192
+ },
193
+ "devDependencies": {
194
+ "@types/bcryptjs": "^2.4.6",
195
+ "@types/node": "^20.10.0",
196
+ "@typescript-eslint/eslint-plugin": "^6.15.0",
197
+ "@typescript-eslint/parser": "^6.15.0",
198
+ "@vitest/coverage-v8": "^1.1.0",
199
+ "eslint": "^8.56.0",
200
+ "eslint-config-prettier": "^9.1.0",
201
+ "eslint-plugin-prettier": "^5.1.0",
202
+ "prettier": "^3.1.1",
203
+ "rimraf": "^5.0.5",
204
+ "tsup": "^8.0.1",
205
+ "typescript": "^5.3.3",
206
+ "vitest": "^1.1.0"
207
+ },
208
+ "optionalDependencies": {
209
+ "bcryptjs": "^2.4.3"
210
+ },
211
+ "peerDependencies": {
212
+ "bcryptjs": "^2.4.3"
213
+ },
214
+ "peerDependenciesMeta": {
215
+ "bcryptjs": {
216
+ "optional": true
217
+ }
218
+ },
219
+ "size-limit": [
220
+ {
221
+ "path": "dist/index.js",
222
+ "limit": "10 KB"
223
+ },
224
+ {
225
+ "path": "dist/validators/index.js",
226
+ "limit": "5 KB"
227
+ }
228
+ ]
229
+ }