toolbox-x 1.0.1-rc.1 → 1.0.1-rc.2
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 +18 -18
- package/dist/{Color-BKdY0DcA.d.cts → Color-BK-IISGk.d.cts} +1 -1
- package/dist/{Color-C02goLG6.d.mts → Color-BrtYYm8M.d.mts} +1 -1
- package/dist/{Stylog-DrSdaWDT.d.cts → Stylog-BmrFKYBu.d.mts} +5 -5
- package/dist/{Stylog-inh9uUAW.d.mts → Stylog-oNGfcRqH.d.cts} +5 -5
- package/dist/{array-B1_68JMA.d.mts → array-606C3HIi.d.cts} +1 -1
- package/dist/{array-CVspDOXQ.d.cts → array-qTbLCFHP.d.mts} +1 -1
- package/dist/{basics-TaHz41sM.d.mts → basics-BlJgwEqR.d.mts} +3 -3
- package/dist/{basics-BKsGo4JQ.d.cts → basics-CEMMxosO.d.cts} +3 -3
- package/dist/{basics-DJtU6jfE.cjs → basics-CYqqguZr.cjs} +2 -2
- package/dist/{basics-voYw4fdF.mjs → basics-DQe9mP_M.mjs} +2 -2
- package/dist/{case-ByzUFETQ.d.cts → case-BYCCZ2yI.d.cts} +1 -1
- package/dist/{case-CRZDrglq.d.mts → case-DF2Af4Fw.d.mts} +1 -1
- package/dist/change-case.d.cts +1 -1
- package/dist/change-case.d.mts +1 -1
- package/dist/colors.d.cts +2 -2
- package/dist/colors.d.mts +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/{convert-BoxPCgCi.mjs → convert-C8LsoKmI.mjs} +2 -2
- package/dist/{convert-DhbwjiJ7.cjs → convert-IaWh6Wab.cjs} +2 -2
- package/dist/{converter-4mLzrhbx.d.cts → converter-B2gv4EJb.d.cts} +3 -3
- package/dist/{converter-WvZUKSzs.d.mts → converter-CcIdAN8V.d.mts} +3 -3
- package/dist/converter.cjs +2 -2
- package/dist/converter.d.cts +2 -2
- package/dist/converter.d.mts +2 -2
- package/dist/converter.mjs +2 -2
- package/dist/date.cjs +2 -2
- package/dist/date.d.cts +3 -3
- package/dist/date.d.mts +3 -3
- package/dist/date.mjs +2 -2
- package/dist/dom.cjs +2 -2
- package/dist/dom.d.cts +3 -3
- package/dist/dom.d.mts +3 -3
- package/dist/dom.mjs +2 -2
- package/dist/{form-B7QeOgNJ.d.mts → form-CpzhN8Ub.d.mts} +2 -2
- package/dist/{form-Cn1dxLvO.d.cts → form-j_V9ZSHn.d.cts} +2 -2
- package/dist/guards.cjs +1 -1
- package/dist/guards.d.cts +3 -3
- package/dist/guards.d.mts +3 -3
- package/dist/guards.mjs +1 -1
- package/dist/{hash-BcoSckUL.d.cts → hash-gQrZTSQ8.d.mts} +1 -1
- package/dist/{hash-KrT1doZr.d.mts → hash-wrjn4ZYW.d.cts} +1 -1
- package/dist/hash.cjs +6 -6
- package/dist/hash.d.cts +8 -8
- package/dist/hash.d.mts +8 -8
- package/dist/hash.mjs +6 -6
- package/dist/{http-status-CJ6-2OAH.d.cts → http-status-BLU4rv3n.d.cts} +1 -1
- package/dist/{http-status-98nJcalX.d.mts → http-status-BmUnryXC.d.mts} +1 -1
- package/dist/http-status.cjs +3 -3
- package/dist/http-status.d.cts +5 -5
- package/dist/http-status.d.mts +5 -5
- package/dist/http-status.mjs +3 -3
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +8 -8
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +4 -4
- package/dist/{object-BHrHfg-O.d.cts → object-NOZEWHcC.d.cts} +2 -2
- package/dist/{object-BHrHfg-O.d.mts → object-NOZEWHcC.d.mts} +2 -2
- package/dist/{objectify-CNhwusmC.mjs → objectify-CryKLquR.mjs} +2 -2
- package/dist/{objectify-D9262AFH.cjs → objectify-DrwoO4bJ.cjs} +2 -2
- package/dist/paginator.d.cts +1 -1
- package/dist/paginator.d.mts +1 -1
- package/dist/{pluralizer-O5sB1jMb.d.mts → pluralizer-Bk7lN1fi.d.cts} +1 -1
- package/dist/{pluralizer-mlxgn6H7.d.cts → pluralizer-D-YOFs-L.d.mts} +1 -1
- package/dist/pluralizer.cjs +4 -4
- package/dist/pluralizer.d.cts +5 -5
- package/dist/pluralizer.d.mts +5 -5
- package/dist/pluralizer.mjs +4 -4
- package/dist/{specials-DHMIKFIa.d.cts → specials-C-SQ_GTS.d.mts} +1 -1
- package/dist/{specials-O2FRSbWm.d.mts → specials-CpwNC9PE.d.cts} +1 -1
- package/dist/{string-C4Wi1BxL.d.mts → string-BhaQOeKm.d.mts} +1 -1
- package/dist/{string-B-0GqS0y.d.cts → string-DN4hbA7H.d.cts} +1 -1
- package/dist/stylog.cjs +4 -4
- package/dist/stylog.d.cts +2 -2
- package/dist/stylog.d.mts +2 -2
- package/dist/stylog.mjs +4 -4
- package/dist/types/array.d.cts +1 -1
- package/dist/types/array.d.mts +1 -1
- package/dist/types/colors.d.cts +1 -1
- package/dist/types/colors.d.mts +1 -1
- package/dist/types/converter.d.cts +1 -1
- package/dist/types/converter.d.mts +1 -1
- package/dist/types/form.d.cts +1 -1
- package/dist/types/form.d.mts +1 -1
- package/dist/types/hash.d.cts +1 -1
- package/dist/types/hash.d.mts +1 -1
- package/dist/types/http-status.d.cts +1 -1
- package/dist/types/http-status.d.mts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/number.d.cts +1 -1
- package/dist/types/number.d.mts +1 -1
- package/dist/types/object.d.cts +1 -1
- package/dist/types/object.d.mts +1 -1
- package/dist/types/pluralizer.d.cts +1 -1
- package/dist/types/pluralizer.d.mts +1 -1
- package/dist/types/string.d.cts +1 -1
- package/dist/types/string.d.mts +1 -1
- package/dist/types/stylog.d.cts +1 -1
- package/dist/types/stylog.d.mts +1 -1
- package/dist/types/utils.d.cts +1 -1
- package/dist/types/utils.d.mts +1 -1
- package/dist/{utils-DD-mfn6r.cjs → utils-B1BHomba.cjs} +2 -2
- package/dist/{utils-D8jpcedf.mjs → utils-BCytS67y.mjs} +2 -2
- package/dist/verbalizer.cjs +2 -2
- package/dist/verbalizer.d.cts +2 -2
- package/dist/verbalizer.d.mts +2 -2
- package/dist/verbalizer.mjs +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
- **Validation Utilities**: Robust data validation patterns
|
|
55
55
|
- **Zero Dependencies**: Framework-agnostic implementation using only native TS/JS with 0 external package
|
|
56
56
|
|
|
57
|
-
> [Explore Full Documentation →](https://toolbox.nazmul-nhb.dev/)
|
|
57
|
+
> [Explore Full Documentation →](https://toolbox-x.nazmul-nhb.dev/)
|
|
58
58
|
|
|
59
59
|
---
|
|
60
60
|
|
|
@@ -88,7 +88,7 @@ See [Changelog](CHANGELOG.md) for recent updates.
|
|
|
88
88
|
- **Modular Design**: Tree-shaking friendly – import only what you need with zero bloat
|
|
89
89
|
- **Zero Dependencies**: No external dependencies - works with any JS/TS framework
|
|
90
90
|
- **IDE Support**: Full type hints with JSDoc-powered API references in your editor
|
|
91
|
-
- **Comprehensive Documentation**: Learn with real-world use cases on [documentation site](https://toolbox.nazmul-nhb.dev/)
|
|
91
|
+
- **Comprehensive Documentation**: Learn with real-world use cases on [documentation site](https://toolbox-x.nazmul-nhb.dev/)
|
|
92
92
|
- **Battle-Tested**: Reliable utilities refined through real-world production use
|
|
93
93
|
- **Optimized for Production**: Focused on clean, efficient implementations
|
|
94
94
|
|
|
@@ -106,7 +106,7 @@ const darkerBlue = blue.applyDarkness(20); // 20% darker
|
|
|
106
106
|
console.log(darkerBlue.hsl); // "hsl(240, 100%, 40%)" (was 50%)
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/classes/Color)
|
|
109
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/classes/Color)
|
|
110
110
|
|
|
111
111
|
---
|
|
112
112
|
|
|
@@ -123,7 +123,7 @@ const laptop = productFinder.findOne('laptop', 'category', {
|
|
|
123
123
|
});
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/classes/Finder)
|
|
126
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/classes/Finder)
|
|
127
127
|
|
|
128
128
|
---
|
|
129
129
|
|
|
@@ -140,7 +140,7 @@ generateRandomID({
|
|
|
140
140
|
}); // "USER-171234567890-AB3C4D5E6F7G"
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/string/generateRandomID)
|
|
143
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/generateRandomID)
|
|
144
144
|
|
|
145
145
|
---
|
|
146
146
|
|
|
@@ -163,7 +163,7 @@ pluralizer.isSingular('child'); // true
|
|
|
163
163
|
pluralizer.isPlural('fish'); // true (uncountable)
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer)
|
|
166
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer)
|
|
167
167
|
|
|
168
168
|
---
|
|
169
169
|
|
|
@@ -179,7 +179,7 @@ getColorForInitial(['Alice', 'Bob', 'Charlie']);
|
|
|
179
179
|
getColorForInitial('Banana', 50); // '#00376E80' (50% opacity)
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/color/getColorForInitial)
|
|
182
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/color/getColorForInitial)
|
|
183
183
|
|
|
184
184
|
---
|
|
185
185
|
|
|
@@ -212,7 +212,7 @@ const formData = createFormData({
|
|
|
212
212
|
// files[1]=[File2]
|
|
213
213
|
```
|
|
214
214
|
|
|
215
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/form/createFormData)
|
|
215
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/form/createFormData)
|
|
216
216
|
|
|
217
217
|
---
|
|
218
218
|
|
|
@@ -236,7 +236,7 @@ sanitizeData(user, { ignoreNullish: true, ignoreEmpty: true }, 'partial');
|
|
|
236
236
|
// Returns { name: "John Doe", address: { city: "NYC" } }
|
|
237
237
|
```
|
|
238
238
|
|
|
239
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/object/sanitizeData)
|
|
239
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/object/sanitizeData)
|
|
240
240
|
|
|
241
241
|
---
|
|
242
242
|
|
|
@@ -248,7 +248,7 @@ sanitizeData(user, { ignoreNullish: true, ignoreEmpty: true }, 'partial');
|
|
|
248
248
|
parseJSON('{"value":"42"}'); // { value: 42 } (auto-converts numbers)
|
|
249
249
|
```
|
|
250
250
|
|
|
251
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/misc/parseJSON)
|
|
251
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/misc/parseJSON)
|
|
252
252
|
|
|
253
253
|
---
|
|
254
254
|
|
|
@@ -260,7 +260,7 @@ parseJSON('{"value":"42"}'); // { value: 42 } (auto-converts numbers)
|
|
|
260
260
|
numberToWords(125); // "one hundred twenty-five"
|
|
261
261
|
```
|
|
262
262
|
|
|
263
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/number/numberToWords)
|
|
263
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/number/numberToWords)
|
|
264
264
|
|
|
265
265
|
---
|
|
266
266
|
|
|
@@ -274,7 +274,7 @@ getNumbersInRange('prime', { min: 10, max: 30, getAsString: true });
|
|
|
274
274
|
// "11, 13, 17, 19, 23, 29"
|
|
275
275
|
```
|
|
276
276
|
|
|
277
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/number/getNumbersInRange)
|
|
277
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/number/getNumbersInRange)
|
|
278
278
|
|
|
279
279
|
**`calculatePercentage`** - Swiss Army knife for percentage calculations with 7 specialized modes
|
|
280
280
|
|
|
@@ -287,7 +287,7 @@ calculatePercentage({
|
|
|
287
287
|
}); // 50 (50% increase)
|
|
288
288
|
```
|
|
289
289
|
|
|
290
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/number/calculatePercentage)
|
|
290
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/number/calculatePercentage)
|
|
291
291
|
|
|
292
292
|
---
|
|
293
293
|
|
|
@@ -302,7 +302,7 @@ extractUpdatedFields(dbRecord, update);
|
|
|
302
302
|
// { meta: { views: 1 } }
|
|
303
303
|
```
|
|
304
304
|
|
|
305
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/object/extractUpdatedFields)
|
|
305
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/object/extractUpdatedFields)
|
|
306
306
|
|
|
307
307
|
---
|
|
308
308
|
|
|
@@ -324,7 +324,7 @@ Stylog.blue.bold.underline.log('I am Bold Underlined Blue!');
|
|
|
324
324
|
Stylog.magenta.italic.log({ data: 'value' }, true);
|
|
325
325
|
```
|
|
326
326
|
|
|
327
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/misc/stylog)
|
|
327
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/misc/stylog)
|
|
328
328
|
|
|
329
329
|
---
|
|
330
330
|
|
|
@@ -337,7 +337,7 @@ Stylog.magenta.italic.log({ data: 'value' }, true);
|
|
|
337
337
|
throttleAction(updateScrollPosition, 100);
|
|
338
338
|
```
|
|
339
339
|
|
|
340
|
-
[Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/misc/throttleAction)
|
|
340
|
+
[Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/misc/throttleAction)
|
|
341
341
|
|
|
342
342
|
**`debounceAction`** - Intelligent delay for expensive operations
|
|
343
343
|
|
|
@@ -346,9 +346,9 @@ throttleAction(updateScrollPosition, 100);
|
|
|
346
346
|
debounceAction(fetchResults, 300);
|
|
347
347
|
```
|
|
348
348
|
|
|
349
|
-
[Full Documentation →](https://toolbox.nazmul-nhb.dev/docs/utilities/misc/debounceAction)
|
|
349
|
+
[Full Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/misc/debounceAction)
|
|
350
350
|
|
|
351
|
-
> These utilities represent just a portion of the comprehensive `toolbox-x`. Each is designed with production-grade reliability and developer experience in mind. Explore more in the [full documentation](https://toolbox.nazmul-nhb.dev). All the utilities and classes are categorized.
|
|
351
|
+
> These utilities represent just a portion of the comprehensive `toolbox-x`. Each is designed with production-grade reliability and developer experience in mind. Explore more in the [full documentation](https://toolbox-x.nazmul-nhb.dev). All the utilities and classes are categorized.
|
|
352
352
|
|
|
353
353
|
---
|
|
354
354
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as Maybe, V as Branded, rn as Percent } from "./object-
|
|
17
|
+
import { $ as Maybe, V as Branded, rn as Percent } from "./object-NOZEWHcC.cjs";
|
|
18
18
|
import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/types/colors.d.ts
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as Maybe, V as Branded, rn as Percent } from "./object-
|
|
17
|
+
import { $ as Maybe, V as Branded, rn as Percent } from "./object-NOZEWHcC.mjs";
|
|
18
18
|
import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/types/colors.d.ts
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { s as CSSColor } from "./Color-
|
|
17
|
+
import { s as CSSColor } from "./Color-BrtYYm8M.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/stylog/constants.d.ts
|
|
20
20
|
/** Records of ANSI-16 colors with values */
|
|
@@ -88,7 +88,7 @@ type StylogChain = LogStyler & { [K in Styles]: StylogChain };
|
|
|
88
88
|
*
|
|
89
89
|
* @remarks
|
|
90
90
|
* - Allows chaining of style methods or initializing with predefined styles.
|
|
91
|
-
* - For fluent, chainable styling with zero configuration use {@link https://toolbox.nazmul-nhb.dev/docs/utilities/misc/stylog Stylog} (`LogStyler` chainable wrapper).
|
|
91
|
+
* - For fluent, chainable styling with zero configuration use {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/misc/stylog Stylog} (`LogStyler` chainable wrapper).
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
94
|
* const styled = new LogStyler(['red', 'bold']);
|
|
@@ -185,7 +185,7 @@ declare class LogStyler {
|
|
|
185
185
|
* @remarks
|
|
186
186
|
* - This method is specifically designed for browser environments and returns a tuple containing the formatted string with `%c` placeholder and an array of CSS styles (`string[]`).
|
|
187
187
|
* - Use this when you need direct access to the CSS styling for custom browser output.
|
|
188
|
-
* - If you want to format with ANSI escape codes, consider using {@link https://toolbox.nazmul-nhb.dev/docs/classes/LogStyler#toansiinput-stringify toANSI} method.
|
|
188
|
+
* - If you want to format with ANSI escape codes, consider using {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/LogStyler#toansiinput-stringify toANSI} method.
|
|
189
189
|
*
|
|
190
190
|
* @param input - Input to style before printing in the shell.
|
|
191
191
|
* @param stringify - Whether to apply `JSON.stringify()` before styling. Defaults to `false`.
|
|
@@ -224,7 +224,7 @@ declare class LogStyler {
|
|
|
224
224
|
*
|
|
225
225
|
* @remarks
|
|
226
226
|
* - This method returns ANSI-formatted strings suitable for environments that support ANSI escape codes (terminals, modern browser consoles, etc.).
|
|
227
|
-
* - For unsupported browsers, consider using the {@link https://toolbox.nazmul-nhb.dev/docs/classes/LogStyler#loginput-stringify log} method to print directly or {@link https://toolbox.nazmul-nhb.dev/docs/classes/LogStyler#tocssinput-stringify toCSS} to get styled tuple `[format, cssList]` for Browser.
|
|
227
|
+
* - For unsupported browsers, consider using the {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/LogStyler#loginput-stringify log} method to print directly or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/LogStyler#tocssinput-stringify toCSS} to get styled tuple `[format, cssList]` for Browser.
|
|
228
228
|
*
|
|
229
229
|
* @param input - Input to style before printing in the shell.
|
|
230
230
|
* @param stringify - Whether to apply `JSON.stringify()` before styling. Defaults to `false`.
|
|
@@ -493,7 +493,7 @@ declare class LogStyler {
|
|
|
493
493
|
* - In browsers, styles are applied using `CSS`; in `Node.js`, `ANSI` escape codes are used.
|
|
494
494
|
* - When multiple styles of the same category are chained, the last one wins.
|
|
495
495
|
* - Use `.log(value, stringify?)` to print; set `stringify` to `true` to serialize with `JSON.stringify`.
|
|
496
|
-
* - If you need custom reusable style configurations, use {@link https://toolbox.nazmul-nhb.dev/docs/classes/LogStyler Stylog} class.
|
|
496
|
+
* - If you need custom reusable style configurations, use {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/LogStyler Stylog} class.
|
|
497
497
|
*
|
|
498
498
|
* @example
|
|
499
499
|
* // Simple color
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { s as CSSColor } from "./Color-
|
|
17
|
+
import { s as CSSColor } from "./Color-BK-IISGk.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/stylog/constants.d.ts
|
|
20
20
|
/** Records of ANSI-16 colors with values */
|
|
@@ -88,7 +88,7 @@ type StylogChain = LogStyler & { [K in Styles]: StylogChain };
|
|
|
88
88
|
*
|
|
89
89
|
* @remarks
|
|
90
90
|
* - Allows chaining of style methods or initializing with predefined styles.
|
|
91
|
-
* - For fluent, chainable styling with zero configuration use {@link https://toolbox.nazmul-nhb.dev/docs/utilities/misc/stylog Stylog} (`LogStyler` chainable wrapper).
|
|
91
|
+
* - For fluent, chainable styling with zero configuration use {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/misc/stylog Stylog} (`LogStyler` chainable wrapper).
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
94
|
* const styled = new LogStyler(['red', 'bold']);
|
|
@@ -185,7 +185,7 @@ declare class LogStyler {
|
|
|
185
185
|
* @remarks
|
|
186
186
|
* - This method is specifically designed for browser environments and returns a tuple containing the formatted string with `%c` placeholder and an array of CSS styles (`string[]`).
|
|
187
187
|
* - Use this when you need direct access to the CSS styling for custom browser output.
|
|
188
|
-
* - If you want to format with ANSI escape codes, consider using {@link https://toolbox.nazmul-nhb.dev/docs/classes/LogStyler#toansiinput-stringify toANSI} method.
|
|
188
|
+
* - If you want to format with ANSI escape codes, consider using {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/LogStyler#toansiinput-stringify toANSI} method.
|
|
189
189
|
*
|
|
190
190
|
* @param input - Input to style before printing in the shell.
|
|
191
191
|
* @param stringify - Whether to apply `JSON.stringify()` before styling. Defaults to `false`.
|
|
@@ -224,7 +224,7 @@ declare class LogStyler {
|
|
|
224
224
|
*
|
|
225
225
|
* @remarks
|
|
226
226
|
* - This method returns ANSI-formatted strings suitable for environments that support ANSI escape codes (terminals, modern browser consoles, etc.).
|
|
227
|
-
* - For unsupported browsers, consider using the {@link https://toolbox.nazmul-nhb.dev/docs/classes/LogStyler#loginput-stringify log} method to print directly or {@link https://toolbox.nazmul-nhb.dev/docs/classes/LogStyler#tocssinput-stringify toCSS} to get styled tuple `[format, cssList]` for Browser.
|
|
227
|
+
* - For unsupported browsers, consider using the {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/LogStyler#loginput-stringify log} method to print directly or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/LogStyler#tocssinput-stringify toCSS} to get styled tuple `[format, cssList]` for Browser.
|
|
228
228
|
*
|
|
229
229
|
* @param input - Input to style before printing in the shell.
|
|
230
230
|
* @param stringify - Whether to apply `JSON.stringify()` before styling. Defaults to `false`.
|
|
@@ -493,7 +493,7 @@ declare class LogStyler {
|
|
|
493
493
|
* - In browsers, styles are applied using `CSS`; in `Node.js`, `ANSI` escape codes are used.
|
|
494
494
|
* - When multiple styles of the same category are chained, the last one wins.
|
|
495
495
|
* - Use `.log(value, stringify?)` to print; set `stringify` to `true` to serialize with `JSON.stringify`.
|
|
496
|
-
* - If you need custom reusable style configurations, use {@link https://toolbox.nazmul-nhb.dev/docs/classes/LogStyler Stylog} class.
|
|
496
|
+
* - If you need custom reusable style configurations, use {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/LogStyler Stylog} class.
|
|
497
497
|
*
|
|
498
498
|
* @example
|
|
499
499
|
* // Simple color
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-
|
|
17
|
+
import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-NOZEWHcC.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/types/array.d.ts
|
|
20
20
|
/** * Flatten Array or Wrap in Array */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-
|
|
17
|
+
import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-NOZEWHcC.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/types/array.d.ts
|
|
20
20
|
/** * Flatten Array or Wrap in Array */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { F as RandomIdOptions } from "./string-
|
|
17
|
+
import { F as RandomIdOptions } from "./string-BhaQOeKm.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/string/basics.d.ts
|
|
20
20
|
/**
|
|
@@ -31,8 +31,8 @@ declare function truncateString(str: string, maxLength: number): string;
|
|
|
31
31
|
* @param options Configuration options for random ID generation.
|
|
32
32
|
* @returns The generated ID string composed of the random alphanumeric string of specified length with optional `timeStamp`, `prefix`, and `suffix`, `caseOption` and `separator`.
|
|
33
33
|
*
|
|
34
|
-
* @see {@link https://toolbox.nazmul-nhb.dev/docs/utilities/hash/uuid uuid} for `uuid` generation
|
|
35
|
-
* @see {@link https://toolbox.nazmul-nhb.dev/docs/utilities/hash/randomHex randomHex} for random hexadecimal string generation
|
|
34
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/hash/uuid uuid} for `uuid` generation
|
|
35
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/hash/randomHex randomHex} for random hexadecimal string generation
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* // Generate an ID with all default options
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { F as RandomIdOptions } from "./string-
|
|
17
|
+
import { F as RandomIdOptions } from "./string-DN4hbA7H.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/string/basics.d.ts
|
|
20
20
|
/**
|
|
@@ -31,8 +31,8 @@ declare function truncateString(str: string, maxLength: number): string;
|
|
|
31
31
|
* @param options Configuration options for random ID generation.
|
|
32
32
|
* @returns The generated ID string composed of the random alphanumeric string of specified length with optional `timeStamp`, `prefix`, and `suffix`, `caseOption` and `separator`.
|
|
33
33
|
*
|
|
34
|
-
* @see {@link https://toolbox.nazmul-nhb.dev/docs/utilities/hash/uuid uuid} for `uuid` generation
|
|
35
|
-
* @see {@link https://toolbox.nazmul-nhb.dev/docs/utilities/hash/randomHex randomHex} for random hexadecimal string generation
|
|
34
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/hash/uuid uuid} for `uuid` generation
|
|
35
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/hash/randomHex randomHex} for random hexadecimal string generation
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* // Generate an ID with all default options
|
|
@@ -37,8 +37,8 @@ function truncateString(str, maxLength) {
|
|
|
37
37
|
* @param options Configuration options for random ID generation.
|
|
38
38
|
* @returns The generated ID string composed of the random alphanumeric string of specified length with optional `timeStamp`, `prefix`, and `suffix`, `caseOption` and `separator`.
|
|
39
39
|
*
|
|
40
|
-
* @see {@link https://toolbox.nazmul-nhb.dev/docs/utilities/hash/uuid uuid} for `uuid` generation
|
|
41
|
-
* @see {@link https://toolbox.nazmul-nhb.dev/docs/utilities/hash/randomHex randomHex} for random hexadecimal string generation
|
|
40
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/hash/uuid uuid} for `uuid` generation
|
|
41
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/hash/randomHex randomHex} for random hexadecimal string generation
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* // Generate an ID with all default options
|
|
@@ -37,8 +37,8 @@ function truncateString(str, maxLength) {
|
|
|
37
37
|
* @param options Configuration options for random ID generation.
|
|
38
38
|
* @returns The generated ID string composed of the random alphanumeric string of specified length with optional `timeStamp`, `prefix`, and `suffix`, `caseOption` and `separator`.
|
|
39
39
|
*
|
|
40
|
-
* @see {@link https://toolbox.nazmul-nhb.dev/docs/utilities/hash/uuid uuid} for `uuid` generation
|
|
41
|
-
* @see {@link https://toolbox.nazmul-nhb.dev/docs/utilities/hash/randomHex randomHex} for random hexadecimal string generation
|
|
40
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/hash/uuid uuid} for `uuid` generation
|
|
41
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/hash/randomHex randomHex} for random hexadecimal string generation
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* // Generate an ID with all default options
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-
|
|
17
|
+
import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-DN4hbA7H.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/string/case.d.ts
|
|
20
20
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-
|
|
17
|
+
import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-BhaQOeKm.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/string/case.d.ts
|
|
20
20
|
/**
|
package/dist/change-case.d.cts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-
|
|
17
|
+
import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-BYCCZ2yI.cjs";
|
|
18
18
|
export { capitalizeString, convertStringCase, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPascalSnakeCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, toTrainCase };
|
package/dist/change-case.d.mts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-
|
|
17
|
+
import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-DF2Af4Fw.mjs";
|
|
18
18
|
export { capitalizeString, convertStringCase, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPascalSnakeCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, toTrainCase };
|
package/dist/colors.d.cts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { rn as Percent } from "./object-
|
|
18
|
-
import { C as RandomColorOptions, E as SolidValues, S as RandomColor, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, w as RandomHexRGB, x as RGBA, y as Hex8 } from "./Color-
|
|
17
|
+
import { rn as Percent } from "./object-NOZEWHcC.cjs";
|
|
18
|
+
import { C as RandomColorOptions, E as SolidValues, S as RandomColor, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, w as RandomHexRGB, x as RGBA, y as Hex8 } from "./Color-BK-IISGk.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/colors/convert.d.ts
|
|
21
21
|
/**
|
package/dist/colors.d.mts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { rn as Percent } from "./object-
|
|
18
|
-
import { C as RandomColorOptions, E as SolidValues, S as RandomColor, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, w as RandomHexRGB, x as RGBA, y as Hex8 } from "./Color-
|
|
17
|
+
import { rn as Percent } from "./object-NOZEWHcC.mjs";
|
|
18
|
+
import { C as RandomColorOptions, E as SolidValues, S as RandomColor, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, w as RandomHexRGB, x as RGBA, y as Hex8 } from "./Color-BrtYYm8M.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/colors/convert.d.ts
|
|
21
21
|
/**
|
package/dist/constants.d.cts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { t as LOWERCASE } from "./constants-C7wERz5m.cjs";
|
|
18
|
-
import { At as TIME_ZONE_IDS, Dt as NATIVE_TZ_IDS, Et as IANA_TZ_IDS, Ft as WESTERN_ZODIAC_SIGNS, Mt as DAYS, Nt as MONTHS, Ot as TIME_ZONES, Pt as VEDIC_ZODIAC_SIGNS, Sr as COUNTRIES, _r as CURRENCY_CODES, br as LOCALE_CODES, jt as TIME_ZONE_LABELS, kt as TIME_ZONES_NATIVE, vr as CURRENCY_LOCALES, xr as UNITS$1, yr as FRANKFURTER_CURRENCIES } from "./object-
|
|
18
|
+
import { At as TIME_ZONE_IDS, Dt as NATIVE_TZ_IDS, Et as IANA_TZ_IDS, Ft as WESTERN_ZODIAC_SIGNS, Mt as DAYS, Nt as MONTHS, Ot as TIME_ZONES, Pt as VEDIC_ZODIAC_SIGNS, Sr as COUNTRIES, _r as CURRENCY_CODES, br as LOCALE_CODES, jt as TIME_ZONE_LABELS, kt as TIME_ZONES_NATIVE, vr as CURRENCY_LOCALES, xr as UNITS$1, yr as FRANKFURTER_CURRENCIES } from "./object-NOZEWHcC.cjs";
|
|
19
19
|
import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.cjs";
|
|
20
20
|
import { t as UNITS } from "./constants-D8RzBjsL.cjs";
|
|
21
21
|
import { t as HTTP_STATUS_CODES } from "./constants-DNIXgBkz.cjs";
|
package/dist/constants.d.mts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { t as LOWERCASE } from "./constants-C7wERz5m.mjs";
|
|
18
|
-
import { At as TIME_ZONE_IDS, Dt as NATIVE_TZ_IDS, Et as IANA_TZ_IDS, Ft as WESTERN_ZODIAC_SIGNS, Mt as DAYS, Nt as MONTHS, Ot as TIME_ZONES, Pt as VEDIC_ZODIAC_SIGNS, Sr as COUNTRIES, _r as CURRENCY_CODES, br as LOCALE_CODES, jt as TIME_ZONE_LABELS, kt as TIME_ZONES_NATIVE, vr as CURRENCY_LOCALES, xr as UNITS$1, yr as FRANKFURTER_CURRENCIES } from "./object-
|
|
18
|
+
import { At as TIME_ZONE_IDS, Dt as NATIVE_TZ_IDS, Et as IANA_TZ_IDS, Ft as WESTERN_ZODIAC_SIGNS, Mt as DAYS, Nt as MONTHS, Ot as TIME_ZONES, Pt as VEDIC_ZODIAC_SIGNS, Sr as COUNTRIES, _r as CURRENCY_CODES, br as LOCALE_CODES, jt as TIME_ZONE_LABELS, kt as TIME_ZONES_NATIVE, vr as CURRENCY_LOCALES, xr as UNITS$1, yr as FRANKFURTER_CURRENCIES } from "./object-NOZEWHcC.mjs";
|
|
19
19
|
import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.mjs";
|
|
20
20
|
import { t as UNITS } from "./constants-D8RzBjsL.mjs";
|
|
21
21
|
import { t as HTTP_STATUS_CODES } from "./constants-DNIXgBkz.mjs";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { d as isString, m as isUndefined } from "./primitives-Djsevc69.mjs";
|
|
18
18
|
import { a as normalizeNumber } from "./utilities-B9axOvOX.mjs";
|
|
19
|
-
import { n as trimString } from "./basics-
|
|
19
|
+
import { n as trimString } from "./basics-DQe9mP_M.mjs";
|
|
20
20
|
|
|
21
21
|
//#region src/number/guards.ts
|
|
22
22
|
/**
|
|
@@ -153,7 +153,7 @@ function extractURLs(str) {
|
|
|
153
153
|
/**
|
|
154
154
|
* * Returns a grammatically correct unit string, optionally prefixed with the number.
|
|
155
155
|
*
|
|
156
|
-
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
156
|
+
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
157
157
|
*
|
|
158
158
|
* @param count The numeric value to determine singular or plural.
|
|
159
159
|
* @param unit The unit name (e.g., "day", "hour").
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
const require_primitives = require('./primitives-CBGICrDR.cjs');
|
|
18
18
|
const require_utilities = require('./utilities-CzyXCRHM.cjs');
|
|
19
|
-
const require_basics = require('./basics-
|
|
19
|
+
const require_basics = require('./basics-CYqqguZr.cjs');
|
|
20
20
|
|
|
21
21
|
//#region src/number/guards.ts
|
|
22
22
|
/**
|
|
@@ -153,7 +153,7 @@ function extractURLs(str) {
|
|
|
153
153
|
/**
|
|
154
154
|
* * Returns a grammatically correct unit string, optionally prefixed with the number.
|
|
155
155
|
*
|
|
156
|
-
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
156
|
+
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
157
157
|
*
|
|
158
158
|
* @param count The numeric value to determine singular or plural.
|
|
159
159
|
* @param unit The unit name (e.g., "day", "hour").
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Hn as Mutable, i as $Record, it as Numeric, zn as LooseLiteral } from "./object-
|
|
17
|
+
import { Hn as Mutable, i as $Record, it as Numeric, zn as LooseLiteral } from "./object-NOZEWHcC.cjs";
|
|
18
18
|
import { t as UNITS } from "./constants-D8RzBjsL.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/converter/base.d.ts
|
|
@@ -65,7 +65,7 @@ declare class $BaseConverter<Unit extends $Unit> {
|
|
|
65
65
|
*
|
|
66
66
|
* @remarks
|
|
67
67
|
* - This method is automatically called when the instance is used in a string context.
|
|
68
|
-
* - For complex and versatile pluralization, please refer to {@link https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
68
|
+
* - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
69
69
|
*/
|
|
70
70
|
toString(): string;
|
|
71
71
|
/**
|
|
@@ -120,7 +120,7 @@ declare class $BaseConverter<Unit extends $Unit> {
|
|
|
120
120
|
* @param decimals Number of decimal places for fractional value.
|
|
121
121
|
* @returns Formatted string with proper unit pluralization.
|
|
122
122
|
*
|
|
123
|
-
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
123
|
+
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
124
124
|
*/
|
|
125
125
|
format(decimals?: number): string;
|
|
126
126
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Hn as Mutable, i as $Record, it as Numeric, zn as LooseLiteral } from "./object-
|
|
17
|
+
import { Hn as Mutable, i as $Record, it as Numeric, zn as LooseLiteral } from "./object-NOZEWHcC.mjs";
|
|
18
18
|
import { t as UNITS } from "./constants-D8RzBjsL.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/converter/base.d.ts
|
|
@@ -65,7 +65,7 @@ declare class $BaseConverter<Unit extends $Unit> {
|
|
|
65
65
|
*
|
|
66
66
|
* @remarks
|
|
67
67
|
* - This method is automatically called when the instance is used in a string context.
|
|
68
|
-
* - For complex and versatile pluralization, please refer to {@link https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
68
|
+
* - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
69
69
|
*/
|
|
70
70
|
toString(): string;
|
|
71
71
|
/**
|
|
@@ -120,7 +120,7 @@ declare class $BaseConverter<Unit extends $Unit> {
|
|
|
120
120
|
* @param decimals Number of decimal places for fractional value.
|
|
121
121
|
* @returns Formatted string with proper unit pluralization.
|
|
122
122
|
*
|
|
123
|
-
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
123
|
+
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
124
124
|
*/
|
|
125
125
|
format(decimals?: number): string;
|
|
126
126
|
/**
|
package/dist/converter.cjs
CHANGED
|
@@ -97,7 +97,7 @@ var $BaseConverter = class {
|
|
|
97
97
|
*
|
|
98
98
|
* @remarks
|
|
99
99
|
* - This method is automatically called when the instance is used in a string context.
|
|
100
|
-
* - For complex and versatile pluralization, please refer to {@link https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
100
|
+
* - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
101
101
|
*/
|
|
102
102
|
toString() {
|
|
103
103
|
return this.$withPluralUnit();
|
|
@@ -177,7 +177,7 @@ var $BaseConverter = class {
|
|
|
177
177
|
* @param decimals Number of decimal places for fractional value.
|
|
178
178
|
* @returns Formatted string with proper unit pluralization.
|
|
179
179
|
*
|
|
180
|
-
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
180
|
+
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
181
181
|
*/
|
|
182
182
|
format(decimals = 2) {
|
|
183
183
|
return this.$withPluralUnit(this.$round(this.value, decimals));
|
package/dist/converter.d.cts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { it as Numeric } from "./object-
|
|
18
|
-
import { C as $Data, S as $Length, b as $Temperature, d as Converted, s as $Unit, v as $Volume, w as $Area, x as $Mass, y as $Time } from "./converter-
|
|
17
|
+
import { it as Numeric } from "./object-NOZEWHcC.cjs";
|
|
18
|
+
import { C as $Data, S as $Length, b as $Temperature, d as Converted, s as $Unit, v as $Volume, w as $Area, x as $Mass, y as $Time } from "./converter-B2gv4EJb.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/converter/Converter.d.ts
|
|
21
21
|
/**
|
package/dist/converter.d.mts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { it as Numeric } from "./object-
|
|
18
|
-
import { C as $Data, S as $Length, b as $Temperature, d as Converted, s as $Unit, v as $Volume, w as $Area, x as $Mass, y as $Time } from "./converter-
|
|
17
|
+
import { it as Numeric } from "./object-NOZEWHcC.mjs";
|
|
18
|
+
import { C as $Data, S as $Length, b as $Temperature, d as Converted, s as $Unit, v as $Volume, w as $Area, x as $Mass, y as $Time } from "./converter-CcIdAN8V.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/converter/Converter.d.ts
|
|
21
21
|
/**
|
package/dist/converter.mjs
CHANGED
|
@@ -96,7 +96,7 @@ var $BaseConverter = class {
|
|
|
96
96
|
*
|
|
97
97
|
* @remarks
|
|
98
98
|
* - This method is automatically called when the instance is used in a string context.
|
|
99
|
-
* - For complex and versatile pluralization, please refer to {@link https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
99
|
+
* - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
100
100
|
*/
|
|
101
101
|
toString() {
|
|
102
102
|
return this.$withPluralUnit();
|
|
@@ -176,7 +176,7 @@ var $BaseConverter = class {
|
|
|
176
176
|
* @param decimals Number of decimal places for fractional value.
|
|
177
177
|
* @returns Formatted string with proper unit pluralization.
|
|
178
178
|
*
|
|
179
|
-
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
179
|
+
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Pluralizer Pluralizer Class} instead.
|
|
180
180
|
*/
|
|
181
181
|
format(decimals = 2) {
|
|
182
182
|
return this.$withPluralUnit(this.$round(this.value, decimals));
|
package/dist/date.cjs
CHANGED
|
@@ -162,8 +162,8 @@ function getTimeZoneIds(offset) {
|
|
|
162
162
|
* - The default format is `'dd, mmm DD, YYYY HH:mm:ss'` (e.g., `'Sun, Apr 06, 2025 16:11:55'`).
|
|
163
163
|
* - By default, local time is used; set `useUTC` to `true` to format in UTC.
|
|
164
164
|
* - The format string supports various tokens for date and time components, as well as literal text enclosed in square brackets.
|
|
165
|
-
* - See {@link https://toolbox.nazmul-nhb.dev/docs/utilities/date/formatDate#format-tokens format tokens} for details on supported tokens.
|
|
166
|
-
* - For more complex date/time manipulations, consider using the {@link https://toolbox.nazmul-nhb.dev/docs/classes/Chronos Chronos} class.
|
|
165
|
+
* - See {@link https://toolbox-x.nazmul-nhb.dev/docs/utilities/date/formatDate#format-tokens format tokens} for details on supported tokens.
|
|
166
|
+
* - For more complex date/time manipulations, consider using the {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/Chronos Chronos} class.
|
|
167
167
|
*
|
|
168
168
|
* @returns Date/time string in specified format.
|
|
169
169
|
*/
|