toolbox-x 1.2.1 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Color-Dsut0Bex.d.cts → Color-BCsnSEmt.d.cts} +1 -1
- package/dist/{Color-DCfoQk_-.d.mts → Color-CKmhtXdG.d.mts} +1 -1
- package/dist/{Stylog-DXZtHAbp.d.mts → Stylog-CXpN-oeY.d.mts} +5 -5
- package/dist/{Stylog-TyLCTRtT.d.cts → Stylog-DJOVxym_.d.cts} +5 -5
- package/dist/{area-CcRQ6TfR.d.cts → area-CHhwLR12.d.cts} +3 -3
- package/dist/{area-CvSC96va.d.mts → area-DOqFLNcr.d.mts} +3 -3
- package/dist/{array-B6jWzJ4F.d.mts → array-BNbTIBni.d.mts} +1 -1
- package/dist/{array-CqDu610k.d.cts → array-CL3apdfa.d.cts} +1 -1
- package/dist/{basics-KobRNhV-.d.cts → basics-B9aytOct.d.cts} +5 -5
- package/dist/{basics-V5M2oltn.d.mts → basics-BNQqY5WD.d.mts} +5 -5
- package/dist/{basics-K8BDSYD6.cjs → basics-CJmdhXoo.cjs} +567 -14
- package/dist/{basics-1_M7UvCn.mjs → basics-CebgkY-n.mjs} +449 -16
- package/dist/{case-uKFzt5TY.cjs → case-Bd7QLHYw.cjs} +3 -3
- package/dist/{case-KdrBKjjK.d.mts → case-Bkkm6Mqi.d.mts} +12 -12
- package/dist/{case-BQwn5N-k.mjs → case-DBC4Rj0h.mjs} +3 -3
- package/dist/{case--Vjea9DS.d.cts → case-DFD3Ml1p.d.cts} +12 -12
- package/dist/change-case.cjs +1 -1
- package/dist/change-case.d.cts +1 -1
- package/dist/change-case.d.mts +1 -1
- package/dist/change-case.mjs +1 -1
- package/dist/colors.d.cts +2 -2
- package/dist/colors.d.mts +2 -2
- package/dist/{constants-C4RW7Lei.cjs → constants-Dz5vxNQ9.cjs} +37 -0
- package/dist/{constants-rNhoy4DH.mjs → constants-j-iXjwDl.mjs} +32 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/constants.mjs +1 -1
- 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 +51 -10
- package/dist/date.d.cts +22 -5
- package/dist/date.d.mts +22 -5
- package/dist/date.mjs +49 -11
- package/dist/dom.cjs +5 -6
- package/dist/dom.d.cts +3 -3
- package/dist/dom.d.mts +3 -3
- package/dist/dom.mjs +4 -5
- package/dist/{form-DoQGMTOc.d.mts → form-CC9T9WnX.d.cts} +2 -2
- package/dist/{form-mP-nl8EC.d.cts → form-CheKmgjj.d.mts} +2 -2
- package/dist/guards-B2s2wlVN.mjs +425 -0
- package/dist/{guards-C0smSAKC.mjs → guards-BK1QuvFZ.mjs} +2 -2
- package/dist/{guards-ClGDJrQp.cjs → guards-Bsh6Bfdq.cjs} +2 -2
- package/dist/{guards-0VjySrPM.cjs → guards-DMJcjPDt.cjs} +279 -3
- package/dist/guards.cjs +9 -8
- package/dist/guards.d.cts +6 -5
- package/dist/guards.d.mts +6 -5
- package/dist/guards.mjs +5 -5
- package/dist/{hash-BcoFHSu1.d.cts → hash-C0Wr7H8v.d.mts} +1 -1
- package/dist/{hash-GYRx2ee_.d.mts → hash-DJ8b9VHB.d.cts} +1 -1
- package/dist/hash.cjs +8 -8
- package/dist/hash.d.cts +8 -8
- package/dist/hash.d.mts +8 -8
- package/dist/hash.mjs +4 -5
- package/dist/{http-status-xrlR-LlB.d.mts → http-status-BSee6mB5.d.mts} +1 -1
- package/dist/{http-status-C0DOpCDf.d.cts → http-status-DJn87B_Y.d.cts} +1 -1
- package/dist/http-status.cjs +4 -4
- package/dist/http-status.d.cts +6 -6
- package/dist/http-status.d.mts +6 -6
- package/dist/http-status.mjs +4 -4
- package/dist/index-01oaUuP6.d.mts +292 -0
- package/dist/index-CgwlWrZM.d.cts +292 -0
- package/dist/index.cjs +67 -248
- package/dist/index.d.cts +25 -280
- package/dist/index.d.mts +25 -280
- package/dist/index.mjs +11 -194
- package/dist/{object-ChFVh95z.d.cts → object-Mglyg4AW.d.cts} +28 -1
- package/dist/{object-ChFVh95z.d.mts → object-Mglyg4AW.d.mts} +28 -1
- package/dist/{objectify-DEnFpPt1.mjs → objectify-CQa8gQib.mjs} +3 -4
- package/dist/{objectify-DewBSJP_.cjs → objectify-xQvZS3UI.cjs} +5 -6
- package/dist/paginator.d.cts +1 -1
- package/dist/paginator.d.mts +1 -1
- package/dist/{parse-DovagZFA.cjs → parse-BWu3UbOk.cjs} +4 -4
- package/dist/{parse-BhZ6-tKg.mjs → parse-CNDdS-sy.mjs} +4 -4
- package/dist/{pluralizer-CdG-VJ6t.d.cts → pluralizer-BGMC8LLz.d.cts} +1 -1
- package/dist/{pluralizer-D2Lh8CdU.d.mts → pluralizer-CQNzRhwR.d.mts} +1 -1
- package/dist/pluralizer.cjs +6 -6
- package/dist/pluralizer.d.cts +6 -6
- package/dist/pluralizer.d.mts +6 -6
- package/dist/pluralizer.mjs +6 -6
- package/dist/{specials-Cye93-uo.mjs → specials-Hq5Ncd6y.mjs} +2 -2
- package/dist/{specials-BM6cx43o.cjs → specials-dkYP1Nh2.cjs} +2 -2
- package/dist/{string-Dq2b8rcN.d.cts → string-BDwBuik3.d.cts} +4 -2
- package/dist/{string-CkwTVFeL.d.mts → string-_1ImwUJT.d.mts} +4 -2
- package/dist/stylog.cjs +5 -5
- package/dist/stylog.d.cts +2 -2
- package/dist/stylog.d.mts +2 -2
- package/dist/stylog.mjs +5 -5
- 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/date.d.cts +2 -2
- package/dist/types/date.d.mts +2 -2
- 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 +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/number.d.cts +1 -1
- package/dist/types/number.d.mts +1 -1
- package/dist/types/object.d.cts +2 -2
- package/dist/types/object.d.mts +2 -2
- package/dist/types/pluralizer.d.cts +1 -1
- package/dist/types/pluralizer.d.mts +1 -1
- package/dist/types/string.d.cts +2 -2
- package/dist/types/string.d.mts +2 -2
- 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/{utilities-CzyXCRHM.cjs → utilities-CWV1GPGY.cjs} +1 -1
- package/dist/{utilities-B9axOvOX.mjs → utilities-DPscNbS1.mjs} +1 -1
- package/dist/{uuid-DgTBxcVu.d.cts → uuid-CiJtSUbo.d.cts} +3 -3
- package/dist/{uuid-Yc3Uu8qr.d.mts → uuid-D-gjPs4Q.d.mts} +3 -3
- package/dist/verbalizer.cjs +3 -3
- package/dist/verbalizer.d.cts +3 -3
- package/dist/verbalizer.d.mts +3 -3
- package/dist/verbalizer.mjs +3 -3
- package/package.json +7 -6
- package/dist/guards-DeO4ukiK.mjs +0 -221
- package/dist/utils-BxguWSoa.cjs +0 -568
- package/dist/utils-DXovsTKs.mjs +0 -449
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $ as
|
|
17
|
+
import { $n as Percent, H as Branded, nt as Maybe } from "./object-Mglyg4AW.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
|
|
17
|
+
import { $n as Percent, H as Branded, nt as Maybe } from "./object-Mglyg4AW.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-CKmhtXdG.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-x.nazmul-nhb.dev/docs/
|
|
91
|
+
* - For fluent, chainable styling with zero configuration use {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/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-x.nazmul-nhb.dev/docs/classes/
|
|
188
|
+
* - If you want to format with ANSI escape codes, consider using {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/log-styler#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-x.nazmul-nhb.dev/docs/classes/
|
|
227
|
+
* - For unsupported browsers, consider using the {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/log-styler#loginput-stringify log} method to print directly or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/log-styler#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-x.nazmul-nhb.dev/docs/classes/
|
|
496
|
+
* - If you need custom reusable style configurations, use {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/log-styler 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-BCsnSEmt.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-x.nazmul-nhb.dev/docs/
|
|
91
|
+
* - For fluent, chainable styling with zero configuration use {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/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-x.nazmul-nhb.dev/docs/classes/
|
|
188
|
+
* - If you want to format with ANSI escape codes, consider using {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/log-styler#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-x.nazmul-nhb.dev/docs/classes/
|
|
227
|
+
* - For unsupported browsers, consider using the {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/log-styler#loginput-stringify log} method to print directly or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/log-styler#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-x.nazmul-nhb.dev/docs/classes/
|
|
496
|
+
* - If you need custom reusable style configurations, use {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/log-styler 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 {
|
|
17
|
+
import { Fr as LooseLiteral, Rr as Mutable, ct as Numeric, i as $Record } from "./object-Mglyg4AW.cjs";
|
|
18
18
|
import { t as UNITS } from "./constants-D8RzBjsL.cjs";
|
|
19
19
|
|
|
20
20
|
//#region src/converter/data.d.ts
|
|
@@ -298,7 +298,7 @@ declare class $BaseConverter<Unit extends $Unit> {
|
|
|
298
298
|
*
|
|
299
299
|
* @remarks
|
|
300
300
|
* - This method is automatically called when the instance is used in a string context.
|
|
301
|
-
* - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/
|
|
301
|
+
* - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/pluralizer Pluralizer Class} instead.
|
|
302
302
|
*/
|
|
303
303
|
toString(): string;
|
|
304
304
|
/**
|
|
@@ -353,7 +353,7 @@ declare class $BaseConverter<Unit extends $Unit> {
|
|
|
353
353
|
* @param decimals Number of decimal places for fractional value.
|
|
354
354
|
* @returns Formatted string with proper unit pluralization.
|
|
355
355
|
*
|
|
356
|
-
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/
|
|
356
|
+
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/pluralizer Pluralizer Class} instead.
|
|
357
357
|
*/
|
|
358
358
|
format(decimals?: number): string;
|
|
359
359
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { Fr as LooseLiteral, Rr as Mutable, ct as Numeric, i as $Record } from "./object-Mglyg4AW.mjs";
|
|
18
18
|
import { t as UNITS } from "./constants-D8RzBjsL.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/converter/data.d.ts
|
|
@@ -298,7 +298,7 @@ declare class $BaseConverter<Unit extends $Unit> {
|
|
|
298
298
|
*
|
|
299
299
|
* @remarks
|
|
300
300
|
* - This method is automatically called when the instance is used in a string context.
|
|
301
|
-
* - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/
|
|
301
|
+
* - For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/pluralizer Pluralizer Class} instead.
|
|
302
302
|
*/
|
|
303
303
|
toString(): string;
|
|
304
304
|
/**
|
|
@@ -353,7 +353,7 @@ declare class $BaseConverter<Unit extends $Unit> {
|
|
|
353
353
|
* @param decimals Number of decimal places for fractional value.
|
|
354
354
|
* @returns Formatted string with proper unit pluralization.
|
|
355
355
|
*
|
|
356
|
-
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/
|
|
356
|
+
* @remarks For complex and versatile pluralization, please refer to {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/string/pluralizer pluralizer} or {@link https://toolbox-x.nazmul-nhb.dev/docs/classes/pluralizer Pluralizer Class} instead.
|
|
357
357
|
*/
|
|
358
358
|
format(decimals?: number): string;
|
|
359
359
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { E as NestedPrimitiveKey,
|
|
17
|
+
import { E as NestedPrimitiveKey, ot as NormalPrimitiveKey, y as GenericObject } from "./object-Mglyg4AW.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 { E as NestedPrimitiveKey,
|
|
17
|
+
import { E as NestedPrimitiveKey, ot as NormalPrimitiveKey, y as GenericObject } from "./object-Mglyg4AW.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 {
|
|
17
|
+
import { I as RandomIdOptions } from "./string-BDwBuik3.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-x.nazmul-nhb.dev/docs/
|
|
35
|
-
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/
|
|
34
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/hash/uuid uuid} for `uuid` generation
|
|
35
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/hash/random-hex randomHex} for random hexadecimal string generation
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* // Generate an ID with all default options
|
|
@@ -78,14 +78,14 @@ declare function truncateString(str: string, maxLength: number): string;
|
|
|
78
78
|
*/
|
|
79
79
|
declare function generateRandomID(options?: RandomIdOptions): string;
|
|
80
80
|
/**
|
|
81
|
-
* * Trims all
|
|
81
|
+
* * Trims all whitespaces in a string.
|
|
82
82
|
*
|
|
83
83
|
* @param input The string to trim.
|
|
84
84
|
* @returns Trimmed string.
|
|
85
85
|
*/
|
|
86
86
|
declare function trimString(input: string): string;
|
|
87
87
|
/**
|
|
88
|
-
* * Trims all
|
|
88
|
+
* * Trims all whitespaces in an array of strings.
|
|
89
89
|
*
|
|
90
90
|
* @param input The array of strings to trim.
|
|
91
91
|
* @returns Trimmed array of strings.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { I as RandomIdOptions } from "./string-_1ImwUJT.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-x.nazmul-nhb.dev/docs/
|
|
35
|
-
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/
|
|
34
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/hash/uuid uuid} for `uuid` generation
|
|
35
|
+
* @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/hash/random-hex randomHex} for random hexadecimal string generation
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* // Generate an ID with all default options
|
|
@@ -78,14 +78,14 @@ declare function truncateString(str: string, maxLength: number): string;
|
|
|
78
78
|
*/
|
|
79
79
|
declare function generateRandomID(options?: RandomIdOptions): string;
|
|
80
80
|
/**
|
|
81
|
-
* * Trims all
|
|
81
|
+
* * Trims all whitespaces in a string.
|
|
82
82
|
*
|
|
83
83
|
* @param input The string to trim.
|
|
84
84
|
* @returns Trimmed string.
|
|
85
85
|
*/
|
|
86
86
|
declare function trimString(input: string): string;
|
|
87
87
|
/**
|
|
88
|
-
* * Trims all
|
|
88
|
+
* * Trims all whitespaces in an array of strings.
|
|
89
89
|
*
|
|
90
90
|
* @param input The array of strings to trim.
|
|
91
91
|
* @returns Trimmed array of strings.
|