@zairakai/js-utils 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 (93) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +270 -0
  3. package/dist/arrays.cjs +210 -0
  4. package/dist/arrays.d.cts +119 -0
  5. package/dist/arrays.d.ts +119 -0
  6. package/dist/arrays.js +32 -0
  7. package/dist/chunk-27YHP2CK.js +407 -0
  8. package/dist/chunk-3WNRYKPG.js +37 -0
  9. package/dist/chunk-42CHLXT7.js +214 -0
  10. package/dist/chunk-6F4PWJZI.js +0 -0
  11. package/dist/chunk-7SXRFZBB.js +173 -0
  12. package/dist/chunk-F6RSTW65.js +156 -0
  13. package/dist/chunk-G7ZJ23DW.js +253 -0
  14. package/dist/chunk-IPP7PA6H.js +136 -0
  15. package/dist/chunk-LDSWHSRX.js +96 -0
  16. package/dist/chunk-TY75OOIQ.js +700 -0
  17. package/dist/chunk-W6JEMFAF.js +54 -0
  18. package/dist/chunk-XEJLBAXE.js +164 -0
  19. package/dist/chunk-Z7G3SIQH.js +270 -0
  20. package/dist/chunk-ZJPKS2MQ.js +101 -0
  21. package/dist/collections.cjs +797 -0
  22. package/dist/collections.d.cts +353 -0
  23. package/dist/collections.d.ts +353 -0
  24. package/dist/collections.js +17 -0
  25. package/dist/datetime.cjs +80 -0
  26. package/dist/datetime.d.cts +75 -0
  27. package/dist/datetime.d.ts +75 -0
  28. package/dist/datetime.js +24 -0
  29. package/dist/equals.cjs +121 -0
  30. package/dist/equals.d.cts +24 -0
  31. package/dist/equals.d.ts +24 -0
  32. package/dist/equals.js +8 -0
  33. package/dist/formatters.cjs +201 -0
  34. package/dist/formatters.d.cts +180 -0
  35. package/dist/formatters.d.ts +180 -0
  36. package/dist/formatters.js +48 -0
  37. package/dist/index.cjs +2906 -0
  38. package/dist/index.d.cts +120 -0
  39. package/dist/index.d.ts +120 -0
  40. package/dist/index.js +348 -0
  41. package/dist/number.cjs +279 -0
  42. package/dist/number.d.cts +177 -0
  43. package/dist/number.d.ts +177 -0
  44. package/dist/number.js +10 -0
  45. package/dist/obj.cjs +427 -0
  46. package/dist/obj.d.cts +177 -0
  47. package/dist/obj.d.ts +177 -0
  48. package/dist/obj.js +12 -0
  49. package/dist/php-arrays.cjs +954 -0
  50. package/dist/php-arrays.d.cts +256 -0
  51. package/dist/php-arrays.d.ts +256 -0
  52. package/dist/php-arrays.js +70 -0
  53. package/dist/runtime.cjs +134 -0
  54. package/dist/runtime.d.cts +90 -0
  55. package/dist/runtime.d.ts +90 -0
  56. package/dist/runtime.js +24 -0
  57. package/dist/schemas.cjs +86 -0
  58. package/dist/schemas.d.cts +108 -0
  59. package/dist/schemas.d.ts +108 -0
  60. package/dist/schemas.js +22 -0
  61. package/dist/str.cjs +499 -0
  62. package/dist/str.d.cts +282 -0
  63. package/dist/str.d.ts +282 -0
  64. package/dist/str.js +11 -0
  65. package/dist/types.cjs +18 -0
  66. package/dist/types.d.cts +13 -0
  67. package/dist/types.d.ts +13 -0
  68. package/dist/types.js +1 -0
  69. package/dist/validator.cjs +251 -0
  70. package/dist/validator.d.cts +99 -0
  71. package/dist/validator.d.ts +99 -0
  72. package/dist/validator.js +11 -0
  73. package/dist/validators.cjs +217 -0
  74. package/dist/validators.d.cts +216 -0
  75. package/dist/validators.d.ts +216 -0
  76. package/dist/validators.js +64 -0
  77. package/package.json +180 -0
  78. package/src/arrays.ts +316 -0
  79. package/src/collections.ts +866 -0
  80. package/src/datetime.ts +103 -0
  81. package/src/equals.ts +134 -0
  82. package/src/formatters.ts +342 -0
  83. package/src/index.ts +36 -0
  84. package/src/number.ts +281 -0
  85. package/src/obj.ts +303 -0
  86. package/src/php-arrays.ts +445 -0
  87. package/src/pipe.ts +29 -0
  88. package/src/runtime.ts +194 -0
  89. package/src/schemas.ts +136 -0
  90. package/src/str.ts +438 -0
  91. package/src/types.ts +13 -0
  92. package/src/validator.ts +157 -0
  93. package/src/validators.ts +359 -0
@@ -0,0 +1,216 @@
1
+ /**
2
+ * Type checking and validation utilities
3
+ * Laravel-inspired validation helpers
4
+ */
5
+ /**
6
+ * Check if value is strictly true
7
+ *
8
+ * @param {unknown} value The value to check
9
+ * @returns {value is true} True if the value is strictly true
10
+ */
11
+ declare const isTrue: (value: unknown) => value is true;
12
+ /**
13
+ * Check if value is strictly false
14
+ *
15
+ * @param {unknown} value The value to check
16
+ * @returns {value is false} True if the value is strictly false
17
+ */
18
+ declare const isFalse: (value: unknown) => value is false;
19
+ /**
20
+ * Check if value is strictly null
21
+ *
22
+ * @param {unknown} value The value to check
23
+ * @returns {value is null} True if the value is strictly null
24
+ */
25
+ declare const isNull: (value: unknown) => value is null;
26
+ /**
27
+ * Check if value is strictly undefined
28
+ *
29
+ * @param {unknown} value The value to check
30
+ * @returns {value is undefined} True if the value is strictly undefined
31
+ */
32
+ declare const isUndefined: (value: unknown) => value is undefined;
33
+ /**
34
+ * Check if value is neither null nor undefined
35
+ *
36
+ * @param {unknown} value The value to check
37
+ * @returns {value is NonNullable<unknown>} True if the value is set
38
+ */
39
+ declare const isSet: (value: unknown) => value is NonNullable<unknown>;
40
+ /**
41
+ * Check if value is an array
42
+ *
43
+ * @param {unknown} value The value to check
44
+ * @returns {value is unknown[]} True if the value is an array
45
+ */
46
+ declare const isArray: (value: unknown) => value is unknown[];
47
+ /**
48
+ * Check if value is a plain object (Record)
49
+ *
50
+ * @param {unknown} value The value to check
51
+ * @returns {value is Record<string, unknown>} True if the value is a plain object
52
+ */
53
+ declare const isObject: (value: unknown) => value is Record<string, unknown>;
54
+ /**
55
+ * Check if value is a string
56
+ *
57
+ * @param {unknown} value The value to check
58
+ * @returns {value is string} True if the value is a string
59
+ */
60
+ declare const isString: (value: unknown) => value is string;
61
+ /**
62
+ * Check if value is a number and not NaN
63
+ *
64
+ * @param {unknown} value The value to check
65
+ * @returns {value is number} True if the value is a valid number
66
+ */
67
+ declare const isNumber: (value: unknown) => value is number;
68
+ /**
69
+ * Check if value is an integer
70
+ *
71
+ * @param {unknown} value The value to check
72
+ * @returns {value is number} True if the value is an integer
73
+ */
74
+ declare const isInteger: (value: unknown) => value is number;
75
+ /**
76
+ * Check if value is a float
77
+ *
78
+ * @param {unknown} value The value to check
79
+ * @returns {value is number} True if the value is a float
80
+ */
81
+ declare const isFloat: (value: unknown) => value is number;
82
+ /**
83
+ * Check if value is a boolean
84
+ *
85
+ * @param {unknown} value The value to check
86
+ * @returns {value is boolean} True if the value is a boolean
87
+ */
88
+ declare const isBoolean: (value: unknown) => value is boolean;
89
+ /**
90
+ * Check if value is a function
91
+ *
92
+ * @param {unknown} value The value to check
93
+ * @returns {value is Function} True if the value is a function
94
+ */
95
+ declare const isFunction: (value: unknown) => value is Function;
96
+ /**
97
+ * Check if value is a valid Date object
98
+ *
99
+ * @param {unknown} value The value to check
100
+ * @returns {value is Date} True if the value is a valid Date object
101
+ */
102
+ declare const isDate: (value: unknown) => value is Date;
103
+ /**
104
+ * Check if value is numeric (number or numeric string)
105
+ *
106
+ * @param {unknown} value The value to check
107
+ * @returns {value is number | string} True if the value is numeric
108
+ */
109
+ declare const isNumeric: (value: unknown) => value is number | string;
110
+ /**
111
+ * Check if value is a valid email address format
112
+ *
113
+ * @param {unknown} value The value to check
114
+ * @returns {value is string} True if the value is a valid email string
115
+ */
116
+ declare const isEmail: (value: unknown) => value is string;
117
+ /**
118
+ * Check if value is a valid URL
119
+ *
120
+ * @param {unknown} value The value to check
121
+ * @returns {value is string} True if the value is a valid URL string
122
+ */
123
+ declare const isUrl: (value: unknown) => value is string;
124
+ /**
125
+ * Check if value is empty (null, undefined, empty string/array/object, zero, or false)
126
+ *
127
+ * @param {unknown} value The value to check
128
+ * @returns {boolean} True if the value is empty
129
+ */
130
+ declare const isEmpty: (value: unknown) => boolean;
131
+ /**
132
+ * Check if value is not empty
133
+ *
134
+ * @param {unknown} value The value to check
135
+ * @returns {boolean} True if the value is not empty
136
+ */
137
+ declare const isNotEmpty: (value: unknown) => boolean;
138
+ /**
139
+ * Check if value is blank (null, undefined, or empty string/whitespace)
140
+ *
141
+ * @param {unknown} value The value to check
142
+ * @returns {boolean} True if the value is blank
143
+ */
144
+ declare const isBlank: (value: unknown) => boolean;
145
+ /**
146
+ * Check if value is present (not blank)
147
+ *
148
+ * @param {unknown} value The value to check
149
+ * @returns {boolean} True if the value is present
150
+ */
151
+ declare const isPresent: (value: unknown) => boolean;
152
+ /**
153
+ * Alias for isPresent()
154
+ *
155
+ * @param {unknown} value The value to check
156
+ * @returns {boolean} True if the value is filled
157
+ */
158
+ declare const filled: (value: unknown) => boolean;
159
+ /**
160
+ * Alias for isBlank()
161
+ *
162
+ * @param {unknown} value The value to check
163
+ * @returns {boolean} True if the value is blank
164
+ */
165
+ declare const blank: (value: unknown) => boolean;
166
+ /**
167
+ * Check if value is an even number
168
+ *
169
+ * @param {unknown} value The value to check
170
+ * @returns {value is number} True if the value is an even number
171
+ */
172
+ declare const isEven: (value: unknown) => value is number;
173
+ /**
174
+ * Check if value is an odd number
175
+ *
176
+ * @param {unknown} value The value to check
177
+ * @returns {value is number} True if the value is an odd number
178
+ */
179
+ declare const isOdd: (value: unknown) => value is number;
180
+ /**
181
+ * Check if value is a valid JSON string
182
+ *
183
+ * @param {unknown} value The value to check
184
+ * @returns {boolean} True if the value is a valid JSON string
185
+ */
186
+ declare const isJson: (value: unknown) => boolean;
187
+ /**
188
+ * Check if value is a valid Base64 encoded string
189
+ *
190
+ * @param {unknown} value The value to check
191
+ * @returns {boolean} True if the value is a valid Base64 string
192
+ */
193
+ declare const isBase64: (value: unknown) => boolean;
194
+ /**
195
+ * Check if value is a valid MAC address
196
+ *
197
+ * @param {unknown} value The value to check
198
+ * @returns {boolean} True if the value is a valid MAC address
199
+ */
200
+ declare const isMacAddress: (value: unknown) => boolean;
201
+ /**
202
+ * Check if value is a valid UUID (v4)
203
+ *
204
+ * @param {unknown} value The value to check
205
+ * @returns {value is string} True if the value is a valid UUID v4 string
206
+ */
207
+ declare const isUuid: (value: unknown) => value is string;
208
+ /**
209
+ * Check if value is a valid IPv4 or IPv6 address
210
+ *
211
+ * @param {unknown} value The value to check
212
+ * @returns {value is string} True if the value is a valid IP address string
213
+ */
214
+ declare const isIp: (value: unknown) => value is string;
215
+
216
+ export { blank, filled, isArray, isBase64, isBlank, isBoolean, isDate, isEmail, isEmpty, isEven, isFalse, isFloat, isFunction, isInteger, isIp, isJson, isMacAddress, isNotEmpty, isNull, isNumber, isNumeric, isObject, isOdd, isPresent, isSet, isString, isTrue, isUndefined, isUrl, isUuid };
@@ -0,0 +1,216 @@
1
+ /**
2
+ * Type checking and validation utilities
3
+ * Laravel-inspired validation helpers
4
+ */
5
+ /**
6
+ * Check if value is strictly true
7
+ *
8
+ * @param {unknown} value The value to check
9
+ * @returns {value is true} True if the value is strictly true
10
+ */
11
+ declare const isTrue: (value: unknown) => value is true;
12
+ /**
13
+ * Check if value is strictly false
14
+ *
15
+ * @param {unknown} value The value to check
16
+ * @returns {value is false} True if the value is strictly false
17
+ */
18
+ declare const isFalse: (value: unknown) => value is false;
19
+ /**
20
+ * Check if value is strictly null
21
+ *
22
+ * @param {unknown} value The value to check
23
+ * @returns {value is null} True if the value is strictly null
24
+ */
25
+ declare const isNull: (value: unknown) => value is null;
26
+ /**
27
+ * Check if value is strictly undefined
28
+ *
29
+ * @param {unknown} value The value to check
30
+ * @returns {value is undefined} True if the value is strictly undefined
31
+ */
32
+ declare const isUndefined: (value: unknown) => value is undefined;
33
+ /**
34
+ * Check if value is neither null nor undefined
35
+ *
36
+ * @param {unknown} value The value to check
37
+ * @returns {value is NonNullable<unknown>} True if the value is set
38
+ */
39
+ declare const isSet: (value: unknown) => value is NonNullable<unknown>;
40
+ /**
41
+ * Check if value is an array
42
+ *
43
+ * @param {unknown} value The value to check
44
+ * @returns {value is unknown[]} True if the value is an array
45
+ */
46
+ declare const isArray: (value: unknown) => value is unknown[];
47
+ /**
48
+ * Check if value is a plain object (Record)
49
+ *
50
+ * @param {unknown} value The value to check
51
+ * @returns {value is Record<string, unknown>} True if the value is a plain object
52
+ */
53
+ declare const isObject: (value: unknown) => value is Record<string, unknown>;
54
+ /**
55
+ * Check if value is a string
56
+ *
57
+ * @param {unknown} value The value to check
58
+ * @returns {value is string} True if the value is a string
59
+ */
60
+ declare const isString: (value: unknown) => value is string;
61
+ /**
62
+ * Check if value is a number and not NaN
63
+ *
64
+ * @param {unknown} value The value to check
65
+ * @returns {value is number} True if the value is a valid number
66
+ */
67
+ declare const isNumber: (value: unknown) => value is number;
68
+ /**
69
+ * Check if value is an integer
70
+ *
71
+ * @param {unknown} value The value to check
72
+ * @returns {value is number} True if the value is an integer
73
+ */
74
+ declare const isInteger: (value: unknown) => value is number;
75
+ /**
76
+ * Check if value is a float
77
+ *
78
+ * @param {unknown} value The value to check
79
+ * @returns {value is number} True if the value is a float
80
+ */
81
+ declare const isFloat: (value: unknown) => value is number;
82
+ /**
83
+ * Check if value is a boolean
84
+ *
85
+ * @param {unknown} value The value to check
86
+ * @returns {value is boolean} True if the value is a boolean
87
+ */
88
+ declare const isBoolean: (value: unknown) => value is boolean;
89
+ /**
90
+ * Check if value is a function
91
+ *
92
+ * @param {unknown} value The value to check
93
+ * @returns {value is Function} True if the value is a function
94
+ */
95
+ declare const isFunction: (value: unknown) => value is Function;
96
+ /**
97
+ * Check if value is a valid Date object
98
+ *
99
+ * @param {unknown} value The value to check
100
+ * @returns {value is Date} True if the value is a valid Date object
101
+ */
102
+ declare const isDate: (value: unknown) => value is Date;
103
+ /**
104
+ * Check if value is numeric (number or numeric string)
105
+ *
106
+ * @param {unknown} value The value to check
107
+ * @returns {value is number | string} True if the value is numeric
108
+ */
109
+ declare const isNumeric: (value: unknown) => value is number | string;
110
+ /**
111
+ * Check if value is a valid email address format
112
+ *
113
+ * @param {unknown} value The value to check
114
+ * @returns {value is string} True if the value is a valid email string
115
+ */
116
+ declare const isEmail: (value: unknown) => value is string;
117
+ /**
118
+ * Check if value is a valid URL
119
+ *
120
+ * @param {unknown} value The value to check
121
+ * @returns {value is string} True if the value is a valid URL string
122
+ */
123
+ declare const isUrl: (value: unknown) => value is string;
124
+ /**
125
+ * Check if value is empty (null, undefined, empty string/array/object, zero, or false)
126
+ *
127
+ * @param {unknown} value The value to check
128
+ * @returns {boolean} True if the value is empty
129
+ */
130
+ declare const isEmpty: (value: unknown) => boolean;
131
+ /**
132
+ * Check if value is not empty
133
+ *
134
+ * @param {unknown} value The value to check
135
+ * @returns {boolean} True if the value is not empty
136
+ */
137
+ declare const isNotEmpty: (value: unknown) => boolean;
138
+ /**
139
+ * Check if value is blank (null, undefined, or empty string/whitespace)
140
+ *
141
+ * @param {unknown} value The value to check
142
+ * @returns {boolean} True if the value is blank
143
+ */
144
+ declare const isBlank: (value: unknown) => boolean;
145
+ /**
146
+ * Check if value is present (not blank)
147
+ *
148
+ * @param {unknown} value The value to check
149
+ * @returns {boolean} True if the value is present
150
+ */
151
+ declare const isPresent: (value: unknown) => boolean;
152
+ /**
153
+ * Alias for isPresent()
154
+ *
155
+ * @param {unknown} value The value to check
156
+ * @returns {boolean} True if the value is filled
157
+ */
158
+ declare const filled: (value: unknown) => boolean;
159
+ /**
160
+ * Alias for isBlank()
161
+ *
162
+ * @param {unknown} value The value to check
163
+ * @returns {boolean} True if the value is blank
164
+ */
165
+ declare const blank: (value: unknown) => boolean;
166
+ /**
167
+ * Check if value is an even number
168
+ *
169
+ * @param {unknown} value The value to check
170
+ * @returns {value is number} True if the value is an even number
171
+ */
172
+ declare const isEven: (value: unknown) => value is number;
173
+ /**
174
+ * Check if value is an odd number
175
+ *
176
+ * @param {unknown} value The value to check
177
+ * @returns {value is number} True if the value is an odd number
178
+ */
179
+ declare const isOdd: (value: unknown) => value is number;
180
+ /**
181
+ * Check if value is a valid JSON string
182
+ *
183
+ * @param {unknown} value The value to check
184
+ * @returns {boolean} True if the value is a valid JSON string
185
+ */
186
+ declare const isJson: (value: unknown) => boolean;
187
+ /**
188
+ * Check if value is a valid Base64 encoded string
189
+ *
190
+ * @param {unknown} value The value to check
191
+ * @returns {boolean} True if the value is a valid Base64 string
192
+ */
193
+ declare const isBase64: (value: unknown) => boolean;
194
+ /**
195
+ * Check if value is a valid MAC address
196
+ *
197
+ * @param {unknown} value The value to check
198
+ * @returns {boolean} True if the value is a valid MAC address
199
+ */
200
+ declare const isMacAddress: (value: unknown) => boolean;
201
+ /**
202
+ * Check if value is a valid UUID (v4)
203
+ *
204
+ * @param {unknown} value The value to check
205
+ * @returns {value is string} True if the value is a valid UUID v4 string
206
+ */
207
+ declare const isUuid: (value: unknown) => value is string;
208
+ /**
209
+ * Check if value is a valid IPv4 or IPv6 address
210
+ *
211
+ * @param {unknown} value The value to check
212
+ * @returns {value is string} True if the value is a valid IP address string
213
+ */
214
+ declare const isIp: (value: unknown) => value is string;
215
+
216
+ export { blank, filled, isArray, isBase64, isBlank, isBoolean, isDate, isEmail, isEmpty, isEven, isFalse, isFloat, isFunction, isInteger, isIp, isJson, isMacAddress, isNotEmpty, isNull, isNumber, isNumeric, isObject, isOdd, isPresent, isSet, isString, isTrue, isUndefined, isUrl, isUuid };
@@ -0,0 +1,64 @@
1
+ import {
2
+ blank,
3
+ filled,
4
+ isArray,
5
+ isBase64,
6
+ isBlank,
7
+ isBoolean,
8
+ isDate,
9
+ isEmail,
10
+ isEmpty,
11
+ isEven,
12
+ isFalse,
13
+ isFloat,
14
+ isFunction,
15
+ isInteger,
16
+ isIp,
17
+ isJson,
18
+ isMacAddress,
19
+ isNotEmpty,
20
+ isNull,
21
+ isNumber,
22
+ isNumeric,
23
+ isObject,
24
+ isOdd,
25
+ isPresent,
26
+ isSet,
27
+ isString,
28
+ isTrue,
29
+ isUndefined,
30
+ isUrl,
31
+ isUuid
32
+ } from "./chunk-XEJLBAXE.js";
33
+ export {
34
+ blank,
35
+ filled,
36
+ isArray,
37
+ isBase64,
38
+ isBlank,
39
+ isBoolean,
40
+ isDate,
41
+ isEmail,
42
+ isEmpty,
43
+ isEven,
44
+ isFalse,
45
+ isFloat,
46
+ isFunction,
47
+ isInteger,
48
+ isIp,
49
+ isJson,
50
+ isMacAddress,
51
+ isNotEmpty,
52
+ isNull,
53
+ isNumber,
54
+ isNumeric,
55
+ isObject,
56
+ isOdd,
57
+ isPresent,
58
+ isSet,
59
+ isString,
60
+ isTrue,
61
+ isUndefined,
62
+ isUrl,
63
+ isUuid
64
+ };
package/package.json ADDED
@@ -0,0 +1,180 @@
1
+ {
2
+ "name": "@zairakai/js-utils",
3
+ "version": "1.0.0",
4
+ "description": "Laravel-inspired TypeScript helpers — fluent strings, numbers, objects, collections, PHP-like arrays, runtime utilities, deep equality, validators, datetime, and Zod schemas",
5
+ "keywords": [
6
+ "helpers",
7
+ "utilities",
8
+ "fluent",
9
+ "string",
10
+ "number",
11
+ "arrays",
12
+ "collections",
13
+ "datetime",
14
+ "validation",
15
+ "formatters",
16
+ "php",
17
+ "javascript",
18
+ "typescript"
19
+ ],
20
+ "homepage": "https://gitlab.com/zairakai/npm-packages/js-utils",
21
+ "bugs": {
22
+ "url": "https://gitlab.com/zairakai/npm-packages/js-utils/-/issues",
23
+ "email": "contact-project+zairakai-npm-packages-js-utils-80189643-issue-@incoming.gitlab.com"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://gitlab.com/zairakai/npm-packages/js-utils.git"
28
+ },
29
+ "funding": [
30
+ {
31
+ "type": "patreon",
32
+ "url": "https://www.patreon.com/c/zairakai"
33
+ },
34
+ {
35
+ "type": "twitch",
36
+ "url": "https://www.twitch.tv/zairakai"
37
+ }
38
+ ],
39
+ "license": "MIT",
40
+ "author": "Stanislas Poisson <stanislas.p@the-white-rabbits.fr> (https://the-white-rabbits.fr)",
41
+ "contributors": [
42
+ {
43
+ "name": "Stanislas Poisson",
44
+ "url": "https://gitlab.com/zairakai",
45
+ "role": "Maintainer"
46
+ }
47
+ ],
48
+ "type": "module",
49
+ "exports": {
50
+ ".": {
51
+ "types": "./dist/index.d.ts",
52
+ "import": "./dist/index.js",
53
+ "require": "./dist/index.cjs"
54
+ },
55
+ "./validators": {
56
+ "types": "./dist/validators.d.ts",
57
+ "import": "./dist/validators.js",
58
+ "require": "./dist/validators.cjs"
59
+ },
60
+ "./formatters": {
61
+ "types": "./dist/formatters.d.ts",
62
+ "import": "./dist/formatters.js",
63
+ "require": "./dist/formatters.cjs"
64
+ },
65
+ "./datetime": {
66
+ "types": "./dist/datetime.d.ts",
67
+ "import": "./dist/datetime.js",
68
+ "require": "./dist/datetime.cjs"
69
+ },
70
+ "./arrays": {
71
+ "types": "./dist/arrays.d.ts",
72
+ "import": "./dist/arrays.js",
73
+ "require": "./dist/arrays.cjs"
74
+ },
75
+ "./collections": {
76
+ "types": "./dist/collections.d.ts",
77
+ "import": "./dist/collections.js",
78
+ "require": "./dist/collections.cjs"
79
+ },
80
+ "./php-arrays": {
81
+ "types": "./dist/php-arrays.d.ts",
82
+ "import": "./dist/php-arrays.js",
83
+ "require": "./dist/php-arrays.cjs"
84
+ },
85
+ "./schemas": {
86
+ "types": "./dist/schemas.d.ts",
87
+ "import": "./dist/schemas.js",
88
+ "require": "./dist/schemas.cjs"
89
+ },
90
+ "./str": {
91
+ "types": "./dist/str.d.ts",
92
+ "import": "./dist/str.js",
93
+ "require": "./dist/str.cjs"
94
+ },
95
+ "./validator": {
96
+ "types": "./dist/validator.d.ts",
97
+ "import": "./dist/validator.js",
98
+ "require": "./dist/validator.cjs"
99
+ },
100
+ "./runtime": {
101
+ "types": "./dist/runtime.d.ts",
102
+ "import": "./dist/runtime.js",
103
+ "require": "./dist/runtime.cjs"
104
+ },
105
+ "./number": {
106
+ "types": "./dist/number.d.ts",
107
+ "import": "./dist/number.js",
108
+ "require": "./dist/number.cjs"
109
+ },
110
+ "./obj": {
111
+ "types": "./dist/obj.d.ts",
112
+ "import": "./dist/obj.js",
113
+ "require": "./dist/obj.cjs"
114
+ },
115
+ "./equals": {
116
+ "types": "./dist/equals.d.ts",
117
+ "import": "./dist/equals.js",
118
+ "require": "./dist/equals.cjs"
119
+ },
120
+ "./types": {
121
+ "types": "./dist/types.d.ts",
122
+ "import": "./dist/types.js",
123
+ "require": "./dist/types.cjs"
124
+ }
125
+ },
126
+ "main": "./dist/index.cjs",
127
+ "types": "./dist/index.d.ts",
128
+ "files": [
129
+ "dist",
130
+ "src",
131
+ "LICENSE",
132
+ "README.md"
133
+ ],
134
+ "scripts": {
135
+ "build": "tsup --config config/dev-tools/tsup.config.js",
136
+ "docs": "typedoc --options config/dev-tools/typedoc.json",
137
+ "eslint": "eslint . --config config/dev-tools/eslint.config.js",
138
+ "eslint:fix": "eslint . --config config/dev-tools/eslint.config.js --fix",
139
+ "postinstall": "bash node_modules/@zairakai/js-dev-tools/scripts/setup-project.sh --silent || true",
140
+ "markdownlint": "markdownlint '**/*.md' --ignore node_modules --config config/dev-tools/.markdownlint.json",
141
+ "markdownlint:fix": "markdownlint '**/*.md' --ignore node_modules --config config/dev-tools/.markdownlint.json --fix",
142
+ "normalize": "make package-normalize",
143
+ "package:validate": "make package-validate",
144
+ "prettier": "prettier . --check --config config/dev-tools/prettier.config.js",
145
+ "prettier:fix": "prettier . --write --config config/dev-tools/prettier.config.js",
146
+ "setup": "bash node_modules/@zairakai/js-dev-tools/scripts/setup-project.sh",
147
+ "test": "vitest --config config/dev-tools/vitest.config.js",
148
+ "typecheck": "tsc --noEmit",
149
+ "validate": "make quality"
150
+ },
151
+ "dependencies": {
152
+ "dayjs": "^1.11.13"
153
+ },
154
+ "devDependencies": {
155
+ "@types/node": "^25.4.0",
156
+ "@vitest/coverage-v8": "^4.0.0",
157
+ "@zairakai/js-dev-tools": "^1.0.0",
158
+ "knip": "^5.85.0",
159
+ "sort-package-json": "^3.6.1",
160
+ "tsup": "^8.0.0",
161
+ "typedoc": "^0.28.0",
162
+ "typescript": "^5.7.2",
163
+ "vitest": "^4.0.0",
164
+ "zod": "^4.0.0"
165
+ },
166
+ "peerDependencies": {
167
+ "zod": "^4.0.0"
168
+ },
169
+ "peerDependenciesMeta": {
170
+ "zod": {
171
+ "optional": true
172
+ }
173
+ },
174
+ "engines": {
175
+ "node": ">=22.0.0"
176
+ },
177
+ "publishConfig": {
178
+ "access": "public"
179
+ }
180
+ }