@hichchi/utils 0.0.1-beta.1 → 0.0.1-beta.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/CHANGELOG.md +16 -12
- package/README.md +110 -114
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
## 0.0.1-beta.
|
|
1
|
+
## 0.0.1-beta.2 (2025-07-18)
|
|
2
2
|
|
|
3
3
|
This was a version bump only for utils to align it with other projects, there were no code changes.
|
|
4
4
|
|
|
5
|
-
## 0.0.1-beta.
|
|
6
|
-
|
|
7
|
-
This was a version bump only for utils to align it with other projects, there were no code changes.
|
|
8
|
-
|
|
9
|
-
## 0.0.1-
|
|
10
|
-
|
|
11
|
-
This was a version bump only for utils to align it with other projects, there were no code changes.
|
|
12
|
-
|
|
13
|
-
## 0.0.1-alpha.
|
|
14
|
-
|
|
15
|
-
This was a version bump only for utils to align it with other projects, there were no code changes.
|
|
5
|
+
## 0.0.1-beta.1 (2025-07-16)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for utils to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
9
|
+
## 0.0.1-beta.0 (2025-07-15)
|
|
10
|
+
|
|
11
|
+
This was a version bump only for utils to align it with other projects, there were no code changes.
|
|
12
|
+
|
|
13
|
+
## 0.0.1-alpha.1 (2025-06-23)
|
|
14
|
+
|
|
15
|
+
This was a version bump only for utils to align it with other projects, there were no code changes.
|
|
16
|
+
|
|
17
|
+
## 0.0.1-alpha.0 (2025-06-23)
|
|
18
|
+
|
|
19
|
+
This was a version bump only for utils to align it with other projects, there were no code changes.
|
package/README.md
CHANGED
|
@@ -289,7 +289,7 @@ Complete technical reference for all classes, interfaces, methods, and types in
|
|
|
289
289
|
|
|
290
290
|
### TemplateTag
|
|
291
291
|
|
|
292
|
-
Defined in: [enums/template-tag.enum.ts:15](https://github.com/hichchidev/hichchi/blob/
|
|
292
|
+
Defined in: [enums/template-tag.enum.ts:15](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L15)
|
|
293
293
|
|
|
294
294
|
Template tags for string transformations
|
|
295
295
|
|
|
@@ -330,7 +330,7 @@ corresponding transformation to the provided value.
|
|
|
330
330
|
</td>
|
|
331
331
|
<td>
|
|
332
332
|
|
|
333
|
-
[enums/template-tag.enum.ts:22](https://github.com/hichchidev/hichchi/blob/
|
|
333
|
+
[enums/template-tag.enum.ts:22](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L22)
|
|
334
334
|
|
|
335
335
|
</td>
|
|
336
336
|
</tr>
|
|
@@ -347,7 +347,7 @@ corresponding transformation to the provided value.
|
|
|
347
347
|
</td>
|
|
348
348
|
<td>
|
|
349
349
|
|
|
350
|
-
[enums/template-tag.enum.ts:21](https://github.com/hichchidev/hichchi/blob/
|
|
350
|
+
[enums/template-tag.enum.ts:21](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L21)
|
|
351
351
|
|
|
352
352
|
</td>
|
|
353
353
|
</tr>
|
|
@@ -364,7 +364,7 @@ corresponding transformation to the provided value.
|
|
|
364
364
|
</td>
|
|
365
365
|
<td>
|
|
366
366
|
|
|
367
|
-
[enums/template-tag.enum.ts:29](https://github.com/hichchidev/hichchi/blob/
|
|
367
|
+
[enums/template-tag.enum.ts:29](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L29)
|
|
368
368
|
|
|
369
369
|
</td>
|
|
370
370
|
</tr>
|
|
@@ -381,7 +381,7 @@ corresponding transformation to the provided value.
|
|
|
381
381
|
</td>
|
|
382
382
|
<td>
|
|
383
383
|
|
|
384
|
-
[enums/template-tag.enum.ts:32](https://github.com/hichchidev/hichchi/blob/
|
|
384
|
+
[enums/template-tag.enum.ts:32](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L32)
|
|
385
385
|
|
|
386
386
|
</td>
|
|
387
387
|
</tr>
|
|
@@ -398,7 +398,7 @@ corresponding transformation to the provided value.
|
|
|
398
398
|
</td>
|
|
399
399
|
<td>
|
|
400
400
|
|
|
401
|
-
[enums/template-tag.enum.ts:24](https://github.com/hichchidev/hichchi/blob/
|
|
401
|
+
[enums/template-tag.enum.ts:24](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L24)
|
|
402
402
|
|
|
403
403
|
</td>
|
|
404
404
|
</tr>
|
|
@@ -415,7 +415,7 @@ corresponding transformation to the provided value.
|
|
|
415
415
|
</td>
|
|
416
416
|
<td>
|
|
417
417
|
|
|
418
|
-
[enums/template-tag.enum.ts:19](https://github.com/hichchidev/hichchi/blob/
|
|
418
|
+
[enums/template-tag.enum.ts:19](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L19)
|
|
419
419
|
|
|
420
420
|
</td>
|
|
421
421
|
</tr>
|
|
@@ -432,7 +432,7 @@ corresponding transformation to the provided value.
|
|
|
432
432
|
</td>
|
|
433
433
|
<td>
|
|
434
434
|
|
|
435
|
-
[enums/template-tag.enum.ts:27](https://github.com/hichchidev/hichchi/blob/
|
|
435
|
+
[enums/template-tag.enum.ts:27](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L27)
|
|
436
436
|
|
|
437
437
|
</td>
|
|
438
438
|
</tr>
|
|
@@ -449,7 +449,7 @@ corresponding transformation to the provided value.
|
|
|
449
449
|
</td>
|
|
450
450
|
<td>
|
|
451
451
|
|
|
452
|
-
[enums/template-tag.enum.ts:31](https://github.com/hichchidev/hichchi/blob/
|
|
452
|
+
[enums/template-tag.enum.ts:31](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L31)
|
|
453
453
|
|
|
454
454
|
</td>
|
|
455
455
|
</tr>
|
|
@@ -466,7 +466,7 @@ corresponding transformation to the provided value.
|
|
|
466
466
|
</td>
|
|
467
467
|
<td>
|
|
468
468
|
|
|
469
|
-
[enums/template-tag.enum.ts:23](https://github.com/hichchidev/hichchi/blob/
|
|
469
|
+
[enums/template-tag.enum.ts:23](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L23)
|
|
470
470
|
|
|
471
471
|
</td>
|
|
472
472
|
</tr>
|
|
@@ -483,7 +483,7 @@ corresponding transformation to the provided value.
|
|
|
483
483
|
</td>
|
|
484
484
|
<td>
|
|
485
485
|
|
|
486
|
-
[enums/template-tag.enum.ts:20](https://github.com/hichchidev/hichchi/blob/
|
|
486
|
+
[enums/template-tag.enum.ts:20](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L20)
|
|
487
487
|
|
|
488
488
|
</td>
|
|
489
489
|
</tr>
|
|
@@ -500,7 +500,7 @@ corresponding transformation to the provided value.
|
|
|
500
500
|
</td>
|
|
501
501
|
<td>
|
|
502
502
|
|
|
503
|
-
[enums/template-tag.enum.ts:30](https://github.com/hichchidev/hichchi/blob/
|
|
503
|
+
[enums/template-tag.enum.ts:30](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L30)
|
|
504
504
|
|
|
505
505
|
</td>
|
|
506
506
|
</tr>
|
|
@@ -517,7 +517,7 @@ corresponding transformation to the provided value.
|
|
|
517
517
|
</td>
|
|
518
518
|
<td>
|
|
519
519
|
|
|
520
|
-
[enums/template-tag.enum.ts:17](https://github.com/hichchidev/hichchi/blob/
|
|
520
|
+
[enums/template-tag.enum.ts:17](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L17)
|
|
521
521
|
|
|
522
522
|
</td>
|
|
523
523
|
</tr>
|
|
@@ -534,7 +534,7 @@ corresponding transformation to the provided value.
|
|
|
534
534
|
</td>
|
|
535
535
|
<td>
|
|
536
536
|
|
|
537
|
-
[enums/template-tag.enum.ts:26](https://github.com/hichchidev/hichchi/blob/
|
|
537
|
+
[enums/template-tag.enum.ts:26](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L26)
|
|
538
538
|
|
|
539
539
|
</td>
|
|
540
540
|
</tr>
|
|
@@ -551,7 +551,7 @@ corresponding transformation to the provided value.
|
|
|
551
551
|
</td>
|
|
552
552
|
<td>
|
|
553
553
|
|
|
554
|
-
[enums/template-tag.enum.ts:16](https://github.com/hichchidev/hichchi/blob/
|
|
554
|
+
[enums/template-tag.enum.ts:16](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L16)
|
|
555
555
|
|
|
556
556
|
</td>
|
|
557
557
|
</tr>
|
|
@@ -568,7 +568,7 @@ corresponding transformation to the provided value.
|
|
|
568
568
|
</td>
|
|
569
569
|
<td>
|
|
570
570
|
|
|
571
|
-
[enums/template-tag.enum.ts:28](https://github.com/hichchidev/hichchi/blob/
|
|
571
|
+
[enums/template-tag.enum.ts:28](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L28)
|
|
572
572
|
|
|
573
573
|
</td>
|
|
574
574
|
</tr>
|
|
@@ -585,7 +585,7 @@ corresponding transformation to the provided value.
|
|
|
585
585
|
</td>
|
|
586
586
|
<td>
|
|
587
587
|
|
|
588
|
-
[enums/template-tag.enum.ts:25](https://github.com/hichchidev/hichchi/blob/
|
|
588
|
+
[enums/template-tag.enum.ts:25](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L25)
|
|
589
589
|
|
|
590
590
|
</td>
|
|
591
591
|
</tr>
|
|
@@ -602,7 +602,7 @@ corresponding transformation to the provided value.
|
|
|
602
602
|
</td>
|
|
603
603
|
<td>
|
|
604
604
|
|
|
605
|
-
[enums/template-tag.enum.ts:18](https://github.com/hichchidev/hichchi/blob/
|
|
605
|
+
[enums/template-tag.enum.ts:18](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/enums/template-tag.enum.ts#L18)
|
|
606
606
|
|
|
607
607
|
</td>
|
|
608
608
|
</tr>
|
|
@@ -617,7 +617,7 @@ corresponding transformation to the provided value.
|
|
|
617
617
|
function applyTemplate(str, prefix): string;
|
|
618
618
|
```
|
|
619
619
|
|
|
620
|
-
Defined in: [utils/string-template.utils.ts:83](https://github.com/hichchidev/hichchi/blob/
|
|
620
|
+
Defined in: [utils/string-template.utils.ts:83](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string-template.utils.ts#L83)
|
|
621
621
|
|
|
622
622
|
Applies a value to a template string containing transformation tags.
|
|
623
623
|
|
|
@@ -740,7 +740,7 @@ applyTemplate(
|
|
|
740
740
|
function applyTemplates(str, prefixes): string;
|
|
741
741
|
```
|
|
742
742
|
|
|
743
|
-
Defined in: [utils/string-template.utils.ts:211](https://github.com/hichchidev/hichchi/blob/
|
|
743
|
+
Defined in: [utils/string-template.utils.ts:211](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string-template.utils.ts#L211)
|
|
744
744
|
|
|
745
745
|
Applies multiple named template transformations to a string with different values for each prefix.
|
|
746
746
|
|
|
@@ -908,7 +908,7 @@ CREATE INDEX idx_#{table.snakeCase}_#{field.snakeCase} ON #{table.snakeCase}(#{f
|
|
|
908
908
|
function breakToWords(str): string[];
|
|
909
909
|
```
|
|
910
910
|
|
|
911
|
-
Defined in: [utils/string.utils.ts:47](https://github.com/hichchidev/hichchi/blob/
|
|
911
|
+
Defined in: [utils/string.utils.ts:47](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L47)
|
|
912
912
|
|
|
913
913
|
Breaks a string into an array of words based on common separator patterns.
|
|
914
914
|
|
|
@@ -983,7 +983,7 @@ breakToWords("123Test456"); // ['123', 'test', '456']
|
|
|
983
983
|
function breakToWords(str, format): string;
|
|
984
984
|
```
|
|
985
985
|
|
|
986
|
-
Defined in: [utils/string.utils.ts:76](https://github.com/hichchidev/hichchi/blob/
|
|
986
|
+
Defined in: [utils/string.utils.ts:76](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L76)
|
|
987
987
|
|
|
988
988
|
Breaks a string into words and formats them using a provided function.
|
|
989
989
|
|
|
@@ -1071,7 +1071,7 @@ breakToWords("SYSTEM_ERROR", (word) => word.toLowerCase()); // "system error"
|
|
|
1071
1071
|
function countOccurrences(str, searchValue, caseSensitive?): number;
|
|
1072
1072
|
```
|
|
1073
1073
|
|
|
1074
|
-
Defined in: [utils/string.utils.ts:1288](https://github.com/hichchidev/hichchi/blob/
|
|
1074
|
+
Defined in: [utils/string.utils.ts:1288](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1288)
|
|
1075
1075
|
|
|
1076
1076
|
Counts the occurrences of a substring within a string.
|
|
1077
1077
|
|
|
@@ -1178,7 +1178,7 @@ countOccurrences("Hello hello", "hello", true); // 1
|
|
|
1178
1178
|
function createExcerpt(text, searchTerm, contextLength?, ellipsis?): string;
|
|
1179
1179
|
```
|
|
1180
1180
|
|
|
1181
|
-
Defined in: [utils/string.utils.ts:721](https://github.com/hichchidev/hichchi/blob/
|
|
1181
|
+
Defined in: [utils/string.utils.ts:721](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L721)
|
|
1182
1182
|
|
|
1183
1183
|
Creates an excerpt from a longer text by extracting a portion around a search term.
|
|
1184
1184
|
Useful for search result highlighting or previews.
|
|
@@ -1313,7 +1313,7 @@ createExcerpt(article, "consectetur", 15, "[...]");
|
|
|
1313
1313
|
function deepCopy<T>(obj): T;
|
|
1314
1314
|
```
|
|
1315
1315
|
|
|
1316
|
-
Defined in: [utils/object.utils.ts:23](https://github.com/hichchidev/hichchi/blob/
|
|
1316
|
+
Defined in: [utils/object.utils.ts:23](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L23)
|
|
1317
1317
|
|
|
1318
1318
|
Deep copy an object.
|
|
1319
1319
|
|
|
@@ -1398,7 +1398,7 @@ const copiedObject = deepCopy(object);
|
|
|
1398
1398
|
function escapeRegExp(str): string;
|
|
1399
1399
|
```
|
|
1400
1400
|
|
|
1401
|
-
Defined in: [utils/string.utils.ts:1134](https://github.com/hichchidev/hichchi/blob/
|
|
1401
|
+
Defined in: [utils/string.utils.ts:1134](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1134)
|
|
1402
1402
|
|
|
1403
1403
|
Escapes special characters in a string for use in regular expressions.
|
|
1404
1404
|
|
|
@@ -1457,7 +1457,7 @@ const regex = new RegExp(escapeRegExp(userInput));
|
|
|
1457
1457
|
function extractEmails(str): string[];
|
|
1458
1458
|
```
|
|
1459
1459
|
|
|
1460
|
-
Defined in: [utils/string.utils.ts:456](https://github.com/hichchidev/hichchi/blob/
|
|
1460
|
+
Defined in: [utils/string.utils.ts:456](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L456)
|
|
1461
1461
|
|
|
1462
1462
|
Extracts all email addresses from a string.
|
|
1463
1463
|
|
|
@@ -1513,7 +1513,7 @@ extractEmails("Contact us at support@example.com or sales@example.com");
|
|
|
1513
1513
|
function extractUrls(str): string[];
|
|
1514
1514
|
```
|
|
1515
1515
|
|
|
1516
|
-
Defined in: [utils/string.utils.ts:475](https://github.com/hichchidev/hichchi/blob/
|
|
1516
|
+
Defined in: [utils/string.utils.ts:475](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L475)
|
|
1517
1517
|
|
|
1518
1518
|
Extracts all URLs from a string.
|
|
1519
1519
|
|
|
@@ -1573,7 +1573,7 @@ Implementation of the format function that handles both overloads.
|
|
|
1573
1573
|
function format(template, ...values): string;
|
|
1574
1574
|
```
|
|
1575
1575
|
|
|
1576
|
-
Defined in: [utils/string.utils.ts:1220](https://github.com/hichchidev/hichchi/blob/
|
|
1576
|
+
Defined in: [utils/string.utils.ts:1220](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1220)
|
|
1577
1577
|
|
|
1578
1578
|
Formats a string by replacing indexed placeholders with provided values.
|
|
1579
1579
|
|
|
@@ -1649,7 +1649,7 @@ format("User {0} has {1} points", "John", 100);
|
|
|
1649
1649
|
function format(template, values): string;
|
|
1650
1650
|
```
|
|
1651
1651
|
|
|
1652
|
-
Defined in: [utils/string.utils.ts:1239](https://github.com/hichchidev/hichchi/blob/
|
|
1652
|
+
Defined in: [utils/string.utils.ts:1239](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1239)
|
|
1653
1653
|
|
|
1654
1654
|
Formats a string by replacing named placeholders with values from an object.
|
|
1655
1655
|
|
|
@@ -1729,7 +1729,7 @@ format("Hello, {name}! You have {count} messages.", {
|
|
|
1729
1729
|
function getEnumValues<T>(e): T[keyof T][];
|
|
1730
1730
|
```
|
|
1731
1731
|
|
|
1732
|
-
Defined in: [utils/object.utils.ts:1070](https://github.com/hichchidev/hichchi/blob/
|
|
1732
|
+
Defined in: [utils/object.utils.ts:1070](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L1070)
|
|
1733
1733
|
|
|
1734
1734
|
Extracts all values from a TypeScript enum, handling both string and numeric enum types correctly.
|
|
1735
1735
|
|
|
@@ -1898,7 +1898,7 @@ Object.values The underlying method used to extract enum entries
|
|
|
1898
1898
|
function getMapKey(map, value): undefined | string;
|
|
1899
1899
|
```
|
|
1900
1900
|
|
|
1901
|
-
Defined in: [utils/object.utils.ts:53](https://github.com/hichchidev/hichchi/blob/
|
|
1901
|
+
Defined in: [utils/object.utils.ts:53](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L53)
|
|
1902
1902
|
|
|
1903
1903
|
Get the key of a map by value.
|
|
1904
1904
|
|
|
@@ -1980,7 +1980,7 @@ const key = getMapKey(user, "value2");
|
|
|
1980
1980
|
function getMapKeys(map, partialValue): string[];
|
|
1981
1981
|
```
|
|
1982
1982
|
|
|
1983
|
-
Defined in: [utils/object.utils.ts:122](https://github.com/hichchidev/hichchi/blob/
|
|
1983
|
+
Defined in: [utils/object.utils.ts:122](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L122)
|
|
1984
1984
|
|
|
1985
1985
|
Retrieves all keys from a Map where the corresponding values contain a specified substring.
|
|
1986
1986
|
|
|
@@ -2104,7 +2104,7 @@ const messageKeys = getMapKeys(translations, "message");
|
|
|
2104
2104
|
function getValueByPath<T>(obj, path): undefined | T;
|
|
2105
2105
|
```
|
|
2106
2106
|
|
|
2107
|
-
Defined in: [utils/object.utils.ts:379](https://github.com/hichchidev/hichchi/blob/
|
|
2107
|
+
Defined in: [utils/object.utils.ts:379](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L379)
|
|
2108
2108
|
|
|
2109
2109
|
Gets a value from a nested object using a dot-notation path string.
|
|
2110
2110
|
|
|
@@ -2230,7 +2230,7 @@ const name = getValueByPath<string>(data, "users[1].name");
|
|
|
2230
2230
|
function groupBy<K, V>(list, keyGetter): Map<null | K, V[]>;
|
|
2231
2231
|
```
|
|
2232
2232
|
|
|
2233
|
-
Defined in: [utils/object.utils.ts:237](https://github.com/hichchidev/hichchi/blob/
|
|
2233
|
+
Defined in: [utils/object.utils.ts:237](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L237)
|
|
2234
2234
|
|
|
2235
2235
|
Groups an array of objects into a Map based on a key extraction function.
|
|
2236
2236
|
|
|
@@ -2429,7 +2429,7 @@ const tasksByStatus = groupBy(tasks, (task) => task.completed);
|
|
|
2429
2429
|
function hashString(str): Promise<string>;
|
|
2430
2430
|
```
|
|
2431
2431
|
|
|
2432
|
-
Defined in: [utils/string.utils.ts:499](https://github.com/hichchidev/hichchi/blob/
|
|
2432
|
+
Defined in: [utils/string.utils.ts:499](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L499)
|
|
2433
2433
|
|
|
2434
2434
|
Converts a string to a secure hash using SHA-256.
|
|
2435
2435
|
|
|
@@ -2489,7 +2489,7 @@ await hashString("password123");
|
|
|
2489
2489
|
function hasOwnAll(obj, props): boolean;
|
|
2490
2490
|
```
|
|
2491
2491
|
|
|
2492
|
-
Defined in: [utils/object.utils.ts:965](https://github.com/hichchidev/hichchi/blob/
|
|
2492
|
+
Defined in: [utils/object.utils.ts:965](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L965)
|
|
2493
2493
|
|
|
2494
2494
|
Checks if an object has all specified properties as its own properties (not inherited).
|
|
2495
2495
|
|
|
@@ -2658,7 +2658,7 @@ Object.hasOwn The underlying method used for property checking
|
|
|
2658
2658
|
function htmlToText(str): string;
|
|
2659
2659
|
```
|
|
2660
2660
|
|
|
2661
|
-
Defined in: [utils/string.utils.ts:1001](https://github.com/hichchidev/hichchi/blob/
|
|
2661
|
+
Defined in: [utils/string.utils.ts:1001](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1001)
|
|
2662
2662
|
|
|
2663
2663
|
Remove HTML tags from a string and return plain text.
|
|
2664
2664
|
|
|
@@ -2713,7 +2713,7 @@ htmlToText("<h1>Hello World</h1>"); // "Hello World"
|
|
|
2713
2713
|
function isAlphanumeric(str): boolean;
|
|
2714
2714
|
```
|
|
2715
2715
|
|
|
2716
|
-
Defined in: [utils/string.utils.ts:1325](https://github.com/hichchidev/hichchi/blob/
|
|
2716
|
+
Defined in: [utils/string.utils.ts:1325](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1325)
|
|
2717
2717
|
|
|
2718
2718
|
Checks if a string contains only alphanumeric characters.
|
|
2719
2719
|
|
|
@@ -2769,7 +2769,7 @@ isAlphanumeric("abc-123"); // false
|
|
|
2769
2769
|
function isArray<T>(value): value is T[];
|
|
2770
2770
|
```
|
|
2771
2771
|
|
|
2772
|
-
Defined in: [utils/assertions.utils.ts:42](https://github.com/hichchidev/hichchi/blob/
|
|
2772
|
+
Defined in: [utils/assertions.utils.ts:42](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/assertions.utils.ts#L42)
|
|
2773
2773
|
|
|
2774
2774
|
Type-safe utility to check if a value is an array of a specific type.
|
|
2775
2775
|
|
|
@@ -2878,7 +2878,7 @@ async function createUser(
|
|
|
2878
2878
|
function isObject<T>(value?): value is T;
|
|
2879
2879
|
```
|
|
2880
2880
|
|
|
2881
|
-
Defined in: [utils/assertions.utils.ts:91](https://github.com/hichchidev/hichchi/blob/
|
|
2881
|
+
Defined in: [utils/assertions.utils.ts:91](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/assertions.utils.ts#L91)
|
|
2882
2882
|
|
|
2883
2883
|
Type-safe utility to check if a value is a non-array object of a specific type.
|
|
2884
2884
|
|
|
@@ -2995,7 +2995,7 @@ function formatUserName(user?: User | string): string {
|
|
|
2995
2995
|
function isObjectWith<T>(value, propertyName): value is T;
|
|
2996
2996
|
```
|
|
2997
2997
|
|
|
2998
|
-
Defined in: [utils/assertions.utils.ts:158](https://github.com/hichchidev/hichchi/blob/
|
|
2998
|
+
Defined in: [utils/assertions.utils.ts:158](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/assertions.utils.ts#L158)
|
|
2999
2999
|
|
|
3000
3000
|
Type-safe utility to check if a value is an object with a specific property.
|
|
3001
3001
|
|
|
@@ -3143,7 +3143,7 @@ async function handleResponse(response: unknown): Promise<void> {
|
|
|
3143
3143
|
function isValidRedirectUrl(url, allowedDomains): boolean;
|
|
3144
3144
|
```
|
|
3145
3145
|
|
|
3146
|
-
Defined in: [utils/url.utils.ts:
|
|
3146
|
+
Defined in: [utils/url.utils.ts:100](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/url.utils.ts#L100)
|
|
3147
3147
|
|
|
3148
3148
|
Validates if a redirect URL is allowed based on a whitelist of permitted domains.
|
|
3149
3149
|
|
|
@@ -3302,10 +3302,6 @@ isValidRedirectUrl("https://fakecompany.com", domains); // false
|
|
|
3302
3302
|
|
|
3303
3303
|
This function catches all URL parsing errors and returns false instead of throwing
|
|
3304
3304
|
|
|
3305
|
-
#### See
|
|
3306
|
-
|
|
3307
|
-
URL The Web API used for URL parsing and validation
|
|
3308
|
-
|
|
3309
3305
|
---
|
|
3310
3306
|
|
|
3311
3307
|
### maskString()
|
|
@@ -3314,7 +3310,7 @@ URL The Web API used for URL parsing and validation
|
|
|
3314
3310
|
function maskString(str, visibleStart?, visibleEnd?, maskChar?): string;
|
|
3315
3311
|
```
|
|
3316
3312
|
|
|
3317
|
-
Defined in: [utils/string.utils.ts:584](https://github.com/hichchidev/hichchi/blob/
|
|
3313
|
+
Defined in: [utils/string.utils.ts:584](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L584)
|
|
3318
3314
|
|
|
3319
3315
|
Masks a portion of a string, useful for displaying sensitive information.
|
|
3320
3316
|
|
|
@@ -3451,7 +3447,7 @@ maskString("+1-555-123-4567", 0, 4);
|
|
|
3451
3447
|
function normalizeString(str): string;
|
|
3452
3448
|
```
|
|
3453
3449
|
|
|
3454
|
-
Defined in: [utils/string.utils.ts:767](https://github.com/hichchidev/hichchi/blob/
|
|
3450
|
+
Defined in: [utils/string.utils.ts:767](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L767)
|
|
3455
3451
|
|
|
3456
3452
|
Normalizes a string by removing accents, diacritics, and converting to lowercase.
|
|
3457
3453
|
|
|
@@ -3509,7 +3505,7 @@ normalizeString("ESPAÑA"); // "espana"
|
|
|
3509
3505
|
function objectToPathValueSet(obj): PathValueSet;
|
|
3510
3506
|
```
|
|
3511
3507
|
|
|
3512
|
-
Defined in: [utils/object.utils.ts:460](https://github.com/hichchidev/hichchi/blob/
|
|
3508
|
+
Defined in: [utils/object.utils.ts:460](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L460)
|
|
3513
3509
|
|
|
3514
3510
|
Converts a nested object into a flattened PathValueSet representation.
|
|
3515
3511
|
|
|
@@ -3608,7 +3604,7 @@ const flattened = objectToPathValueSet(user);
|
|
|
3608
3604
|
function omit<T>(obj, keys?): Partial<T>;
|
|
3609
3605
|
```
|
|
3610
3606
|
|
|
3611
|
-
Defined in: [utils/object.utils.ts:683](https://github.com/hichchidev/hichchi/blob/
|
|
3607
|
+
Defined in: [utils/object.utils.ts:683](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L683)
|
|
3612
3608
|
|
|
3613
3609
|
Creates a new object by omitting specified properties and undefined values from the original object.
|
|
3614
3610
|
|
|
@@ -3788,7 +3784,7 @@ const publicProfile = omit(userProfile, ["password", "internalNotes"]);
|
|
|
3788
3784
|
function padString(str, length, char?, padEnd?): string;
|
|
3789
3785
|
```
|
|
3790
3786
|
|
|
3791
|
-
Defined in: [utils/string.utils.ts:1111](https://github.com/hichchidev/hichchi/blob/
|
|
3787
|
+
Defined in: [utils/string.utils.ts:1111](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1111)
|
|
3792
3788
|
|
|
3793
3789
|
Pads a string to a specified length with a specified character.
|
|
3794
3790
|
|
|
@@ -3917,7 +3913,7 @@ padString("Hello", 10, "0", false); // "00000Hello"
|
|
|
3917
3913
|
function pathValueSetToObject<R>(pathValueSet): R;
|
|
3918
3914
|
```
|
|
3919
3915
|
|
|
3920
|
-
Defined in: [utils/object.utils.ts:549](https://github.com/hichchidev/hichchi/blob/
|
|
3916
|
+
Defined in: [utils/object.utils.ts:549](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L549)
|
|
3921
3917
|
|
|
3922
3918
|
Converts a flattened PathValueSet back into a nested object structure.
|
|
3923
3919
|
|
|
@@ -4061,7 +4057,7 @@ const userData = pathValueSetToObject<User>(flatData);
|
|
|
4061
4057
|
function plural(str): string;
|
|
4062
4058
|
```
|
|
4063
4059
|
|
|
4064
|
-
Defined in: [utils/string.utils.ts:1049](https://github.com/hichchidev/hichchi/blob/
|
|
4060
|
+
Defined in: [utils/string.utils.ts:1049](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1049)
|
|
4065
4061
|
|
|
4066
4062
|
Converts a singular English word to its plural form.
|
|
4067
4063
|
|
|
@@ -4150,7 +4146,7 @@ plural("analysis"); // "analyses"
|
|
|
4150
4146
|
function prune<T>(obj, omitPrototype?): T;
|
|
4151
4147
|
```
|
|
4152
4148
|
|
|
4153
|
-
Defined in: [utils/object.utils.ts:838](https://github.com/hichchidev/hichchi/blob/
|
|
4149
|
+
Defined in: [utils/object.utils.ts:838](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L838)
|
|
4154
4150
|
|
|
4155
4151
|
Creates a deep copy of an object with all empty, null, undefined, and optionally prototype properties removed.
|
|
4156
4152
|
|
|
@@ -4381,7 +4377,7 @@ const prunedOwnOnly = prune(user, true);
|
|
|
4381
4377
|
function randomString(length, charset?): string;
|
|
4382
4378
|
```
|
|
4383
4379
|
|
|
4384
|
-
Defined in: [utils/string.utils.ts:536](https://github.com/hichchidev/hichchi/blob/
|
|
4380
|
+
Defined in: [utils/string.utils.ts:536](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L536)
|
|
4385
4381
|
|
|
4386
4382
|
Generates a random string with specified length and character set.
|
|
4387
4383
|
|
|
@@ -4463,7 +4459,7 @@ randomString(4, "0123456789");
|
|
|
4463
4459
|
function removeWhitespace(str): string;
|
|
4464
4460
|
```
|
|
4465
4461
|
|
|
4466
|
-
Defined in: [utils/string.utils.ts:1342](https://github.com/hichchidev/hichchi/blob/
|
|
4462
|
+
Defined in: [utils/string.utils.ts:1342](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1342)
|
|
4467
4463
|
|
|
4468
4464
|
Removes all whitespace from a string.
|
|
4469
4465
|
|
|
@@ -4519,7 +4515,7 @@ removeWhitespace(" spaces tabs "); // "spacestabs"
|
|
|
4519
4515
|
function reverse(str): string;
|
|
4520
4516
|
```
|
|
4521
4517
|
|
|
4522
|
-
Defined in: [utils/string.utils.ts:1308](https://github.com/hichchidev/hichchi/blob/
|
|
4518
|
+
Defined in: [utils/string.utils.ts:1308](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1308)
|
|
4523
4519
|
|
|
4524
4520
|
Reverses a string.
|
|
4525
4521
|
|
|
@@ -4575,7 +4571,7 @@ reverse("12345"); // "54321"
|
|
|
4575
4571
|
function searchMapValues(map, partialValue): string[];
|
|
4576
4572
|
```
|
|
4577
4573
|
|
|
4578
|
-
Defined in: [utils/object.utils.ts:327](https://github.com/hichchidev/hichchi/blob/
|
|
4574
|
+
Defined in: [utils/object.utils.ts:327](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/object.utils.ts#L327)
|
|
4579
4575
|
|
|
4580
4576
|
Retrieves all values from a Map that contain a specified substring.
|
|
4581
4577
|
|
|
@@ -4712,7 +4708,7 @@ const productionValues = searchMapValues(config, "production");
|
|
|
4712
4708
|
function singular(str): string;
|
|
4713
4709
|
```
|
|
4714
4710
|
|
|
4715
|
-
Defined in: [utils/string.utils.ts:1387](https://github.com/hichchidev/hichchi/blob/
|
|
4711
|
+
Defined in: [utils/string.utils.ts:1387](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1387)
|
|
4716
4712
|
|
|
4717
4713
|
Converts plural English words to their singular form.
|
|
4718
4714
|
|
|
@@ -4797,7 +4793,7 @@ singular("phenomena"); // "phenomenon"
|
|
|
4797
4793
|
function slugify(str, separator?): string;
|
|
4798
4794
|
```
|
|
4799
4795
|
|
|
4800
|
-
Defined in: [utils/string.utils.ts:430](https://github.com/hichchidev/hichchi/blob/
|
|
4796
|
+
Defined in: [utils/string.utils.ts:430](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L430)
|
|
4801
4797
|
|
|
4802
4798
|
Generates a slug from a string, suitable for URLs or file names.
|
|
4803
4799
|
|
|
@@ -4884,7 +4880,7 @@ slugify("Blog Post", "_"); // "blog_post"
|
|
|
4884
4880
|
function stringSimilarity(str1, str2): number;
|
|
4885
4881
|
```
|
|
4886
4882
|
|
|
4887
|
-
Defined in: [utils/string.utils.ts:380](https://github.com/hichchidev/hichchi/blob/
|
|
4883
|
+
Defined in: [utils/string.utils.ts:380](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L380)
|
|
4888
4884
|
|
|
4889
4885
|
Compares two strings for similarity using Levenshtein distance algorithm.
|
|
4890
4886
|
|
|
@@ -4962,7 +4958,7 @@ stringSimilarity("same", "same"); // 1.0 (identical)
|
|
|
4962
4958
|
function toCamelCase(str?): string;
|
|
4963
4959
|
```
|
|
4964
4960
|
|
|
4965
|
-
Defined in: [utils/string.utils.ts:870](https://github.com/hichchidev/hichchi/blob/
|
|
4961
|
+
Defined in: [utils/string.utils.ts:870](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L870)
|
|
4966
4962
|
|
|
4967
4963
|
Convert a string to camel case.
|
|
4968
4964
|
|
|
@@ -5017,7 +5013,7 @@ toCamelCase("hello world"); // "helloWorld"
|
|
|
5017
5013
|
function toFirstCase(str?): string;
|
|
5018
5014
|
```
|
|
5019
5015
|
|
|
5020
|
-
Defined in: [utils/string.utils.ts:612](https://github.com/hichchidev/hichchi/blob/
|
|
5016
|
+
Defined in: [utils/string.utils.ts:612](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L612)
|
|
5021
5017
|
|
|
5022
5018
|
Convert a string to first case (Capitalize first letter of the string).
|
|
5023
5019
|
|
|
@@ -5072,7 +5068,7 @@ toFirstCase("hello world"); // "Hello world"
|
|
|
5072
5068
|
function toFirstCaseBreak(str?, join?): string;
|
|
5073
5069
|
```
|
|
5074
5070
|
|
|
5075
|
-
Defined in: [utils/string.utils.ts:832](https://github.com/hichchidev/hichchi/blob/
|
|
5071
|
+
Defined in: [utils/string.utils.ts:832](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L832)
|
|
5076
5072
|
|
|
5077
5073
|
Converts a string to Sentence case (first word capitalized, rest lowercase) with customizable word separators.
|
|
5078
5074
|
|
|
@@ -5166,7 +5162,7 @@ toFirstCaseBreak("GET_USER_DATA", "/"); // "Get/user/data"
|
|
|
5166
5162
|
function toKebabCase(str?, caps?): string;
|
|
5167
5163
|
```
|
|
5168
5164
|
|
|
5169
|
-
Defined in: [utils/string.utils.ts:969](https://github.com/hichchidev/hichchi/blob/
|
|
5165
|
+
Defined in: [utils/string.utils.ts:969](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L969)
|
|
5170
5166
|
|
|
5171
5167
|
Convert a string to kebab case.
|
|
5172
5168
|
|
|
@@ -5242,7 +5238,7 @@ toKebabCase("hello world", true); // "HELLO-WORLD"
|
|
|
5242
5238
|
function toLowerCase(str?): string;
|
|
5243
5239
|
```
|
|
5244
5240
|
|
|
5245
|
-
Defined in: [utils/string.utils.ts:163](https://github.com/hichchidev/hichchi/blob/
|
|
5241
|
+
Defined in: [utils/string.utils.ts:163](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L163)
|
|
5246
5242
|
|
|
5247
5243
|
Converts a string to lowercase with safe handling of undefined or null values.
|
|
5248
5244
|
|
|
@@ -5357,7 +5353,7 @@ function validateEmail(email?: string): boolean {
|
|
|
5357
5353
|
function toLowerCaseBreak(str?, join?): string;
|
|
5358
5354
|
```
|
|
5359
5355
|
|
|
5360
|
-
Defined in: [utils/string.utils.ts:262](https://github.com/hichchidev/hichchi/blob/
|
|
5356
|
+
Defined in: [utils/string.utils.ts:262](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L262)
|
|
5361
5357
|
|
|
5362
5358
|
Converts a string to lowercase and breaks it into words, joining them with a specified separator.
|
|
5363
5359
|
|
|
@@ -5508,7 +5504,7 @@ const result3 = toLowerCaseBreak("singleword");
|
|
|
5508
5504
|
function toNumber(str): undefined | number;
|
|
5509
5505
|
```
|
|
5510
5506
|
|
|
5511
|
-
Defined in: [utils/string.utils.ts:987](https://github.com/hichchidev/hichchi/blob/
|
|
5507
|
+
Defined in: [utils/string.utils.ts:987](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L987)
|
|
5512
5508
|
|
|
5513
5509
|
Converts a string to a number.
|
|
5514
5510
|
|
|
@@ -5563,7 +5559,7 @@ toNumber("123"); // 123
|
|
|
5563
5559
|
function toPascalCase(str?): string;
|
|
5564
5560
|
```
|
|
5565
5561
|
|
|
5566
|
-
Defined in: [utils/string.utils.ts:889](https://github.com/hichchidev/hichchi/blob/
|
|
5562
|
+
Defined in: [utils/string.utils.ts:889](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L889)
|
|
5567
5563
|
|
|
5568
5564
|
Convert a string to pascal case.
|
|
5569
5565
|
|
|
@@ -5618,7 +5614,7 @@ toPascalCase("hello world"); // "HelloWorld"
|
|
|
5618
5614
|
function toProperTitleCase(str): string;
|
|
5619
5615
|
```
|
|
5620
5616
|
|
|
5621
|
-
Defined in: [utils/string.utils.ts:1159](https://github.com/hichchidev/hichchi/blob/
|
|
5617
|
+
Defined in: [utils/string.utils.ts:1159](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1159)
|
|
5622
5618
|
|
|
5623
5619
|
Capitalizes each word in a string according to title case rules.
|
|
5624
5620
|
|
|
@@ -5684,7 +5680,7 @@ toProperTitleCase("a tale of two cities");
|
|
|
5684
5680
|
function toSentenceCase(str?): string;
|
|
5685
5681
|
```
|
|
5686
5682
|
|
|
5687
|
-
Defined in: [utils/string.utils.ts:908](https://github.com/hichchidev/hichchi/blob/
|
|
5683
|
+
Defined in: [utils/string.utils.ts:908](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L908)
|
|
5688
5684
|
|
|
5689
5685
|
Convert a string to sentence case. (Capitalize first letter of every sentence).
|
|
5690
5686
|
|
|
@@ -5739,7 +5735,7 @@ toSentenceCase("hello world. how are you?"); // "Hello world. How are you?"
|
|
|
5739
5735
|
function toSnakeCase(str?, caps?): string;
|
|
5740
5736
|
```
|
|
5741
5737
|
|
|
5742
|
-
Defined in: [utils/string.utils.ts:945](https://github.com/hichchidev/hichchi/blob/
|
|
5738
|
+
Defined in: [utils/string.utils.ts:945](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L945)
|
|
5743
5739
|
|
|
5744
5740
|
Converts a string to snake_case format.
|
|
5745
5741
|
|
|
@@ -5830,7 +5826,7 @@ then joins them with underscores, applying the requested case transformation.
|
|
|
5830
5826
|
function toTitleCase(str?): string;
|
|
5831
5827
|
```
|
|
5832
5828
|
|
|
5833
|
-
Defined in: [utils/string.utils.ts:851](https://github.com/hichchidev/hichchi/blob/
|
|
5829
|
+
Defined in: [utils/string.utils.ts:851](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L851)
|
|
5834
5830
|
|
|
5835
5831
|
Convert a string to title case (Capitalize first letter of each word).
|
|
5836
5832
|
|
|
@@ -5885,7 +5881,7 @@ toTitleCase("hello world"); // "Hello World"
|
|
|
5885
5881
|
function toUpperCase(str?): string;
|
|
5886
5882
|
```
|
|
5887
5883
|
|
|
5888
|
-
Defined in: [utils/string.utils.ts:355](https://github.com/hichchidev/hichchi/blob/
|
|
5884
|
+
Defined in: [utils/string.utils.ts:355](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L355)
|
|
5889
5885
|
|
|
5890
5886
|
Converts a string to uppercase with safe handling of undefined or null values.
|
|
5891
5887
|
|
|
@@ -6012,7 +6008,7 @@ compareIgnoreCase("Test", "test"); // true
|
|
|
6012
6008
|
function toUpperCaseBreak(str?, join?): string;
|
|
6013
6009
|
```
|
|
6014
6010
|
|
|
6015
|
-
Defined in: [utils/string.utils.ts:791](https://github.com/hichchidev/hichchi/blob/
|
|
6011
|
+
Defined in: [utils/string.utils.ts:791](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L791)
|
|
6016
6012
|
|
|
6017
6013
|
Convert a string to upper cases and break into words with optional join or space.
|
|
6018
6014
|
|
|
@@ -6087,7 +6083,7 @@ toUpperCaseBreak("HelloWorld", "! "); // "HELLO! WORLD"
|
|
|
6087
6083
|
function toVariableName(str, pascalCase?): string;
|
|
6088
6084
|
````
|
|
6089
6085
|
|
|
6090
|
-
Defined in: [utils/string.utils.ts:634](https://github.com/hichchidev/hichchi/blob/
|
|
6086
|
+
Defined in: [utils/string.utils.ts:634](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L634)
|
|
6091
6087
|
|
|
6092
6088
|
Converts a string to a camelCase or PascalCase variable name.
|
|
6093
6089
|
|
|
@@ -6173,7 +6169,7 @@ toVariableName("user_id", true); // "UserId"
|
|
|
6173
6169
|
function truncate(str, length, ellipsis?): string;
|
|
6174
6170
|
```
|
|
6175
6171
|
|
|
6176
|
-
Defined in: [utils/string.utils.ts:1089](https://github.com/hichchidev/hichchi/blob/
|
|
6172
|
+
Defined in: [utils/string.utils.ts:1089](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L1089)
|
|
6177
6173
|
|
|
6178
6174
|
Truncates a string to a specified length and adds an ellipsis if needed.
|
|
6179
6175
|
|
|
@@ -6280,7 +6276,7 @@ truncate("Custom ellipsis", 6, " [more]"); // "Custom [more]"
|
|
|
6280
6276
|
function wordWrap(str, lineLength?, breakChar?): string;
|
|
6281
6277
|
```
|
|
6282
6278
|
|
|
6283
|
-
Defined in: [utils/string.utils.ts:672](https://github.com/hichchidev/hichchi/blob/
|
|
6279
|
+
Defined in: [utils/string.utils.ts:672](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/utils/string.utils.ts#L672)
|
|
6284
6280
|
|
|
6285
6281
|
Wraps words in a string to ensure each line is no longer than a specified length.
|
|
6286
6282
|
|
|
@@ -6388,7 +6384,7 @@ wordWrap(text, 30, "<br>");
|
|
|
6388
6384
|
|
|
6389
6385
|
### InfiniteObject
|
|
6390
6386
|
|
|
6391
|
-
Defined in: [interfaces/infinite-object.interface.ts:43](https://github.com/hichchidev/hichchi/blob/
|
|
6387
|
+
Defined in: [interfaces/infinite-object.interface.ts:43](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/infinite-object.interface.ts#L43)
|
|
6392
6388
|
|
|
6393
6389
|
Represents an object with infinite nesting capability (recursive object type).
|
|
6394
6390
|
|
|
@@ -6446,7 +6442,7 @@ const nestedObj: InfiniteObject = {
|
|
|
6446
6442
|
|
|
6447
6443
|
### InflectionRule
|
|
6448
6444
|
|
|
6449
|
-
Defined in: [interfaces/inflection-rule.interfaces.ts:30](https://github.com/hichchidev/hichchi/blob/
|
|
6445
|
+
Defined in: [interfaces/inflection-rule.interfaces.ts:30](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L30)
|
|
6450
6446
|
|
|
6451
6447
|
Rule type for word inflection transformation
|
|
6452
6448
|
|
|
@@ -6510,7 +6506,7 @@ Regular expression pattern to match words this rule applies to
|
|
|
6510
6506
|
</td>
|
|
6511
6507
|
<td>
|
|
6512
6508
|
|
|
6513
|
-
[interfaces/inflection-rule.interfaces.ts:34](https://github.com/hichchidev/hichchi/blob/
|
|
6509
|
+
[interfaces/inflection-rule.interfaces.ts:34](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L34)
|
|
6514
6510
|
|
|
6515
6511
|
</td>
|
|
6516
6512
|
</tr>
|
|
@@ -6532,7 +6528,7 @@ Replacement string with capture group references or function to transform the ma
|
|
|
6532
6528
|
</td>
|
|
6533
6529
|
<td>
|
|
6534
6530
|
|
|
6535
|
-
[interfaces/inflection-rule.interfaces.ts:39](https://github.com/hichchidev/hichchi/blob/
|
|
6531
|
+
[interfaces/inflection-rule.interfaces.ts:39](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L39)
|
|
6536
6532
|
|
|
6537
6533
|
</td>
|
|
6538
6534
|
</tr>
|
|
@@ -6543,7 +6539,7 @@ Replacement string with capture group references or function to transform the ma
|
|
|
6543
6539
|
|
|
6544
6540
|
### InflectionRuleCategories
|
|
6545
6541
|
|
|
6546
|
-
Defined in: [interfaces/inflection-rule.interfaces.ts:125](https://github.com/hichchidev/hichchi/blob/
|
|
6542
|
+
Defined in: [interfaces/inflection-rule.interfaces.ts:125](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L125)
|
|
6547
6543
|
|
|
6548
6544
|
Categories of English inflection rules
|
|
6549
6545
|
|
|
@@ -6620,7 +6616,7 @@ Default rules for standard transformations
|
|
|
6620
6616
|
</td>
|
|
6621
6617
|
<td>
|
|
6622
6618
|
|
|
6623
|
-
[interfaces/inflection-rule.interfaces.ts:149](https://github.com/hichchidev/hichchi/blob/
|
|
6619
|
+
[interfaces/inflection-rule.interfaces.ts:149](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L149)
|
|
6624
6620
|
|
|
6625
6621
|
</td>
|
|
6626
6622
|
</tr>
|
|
@@ -6642,7 +6638,7 @@ Words that are the same in singular and plural form
|
|
|
6642
6638
|
</td>
|
|
6643
6639
|
<td>
|
|
6644
6640
|
|
|
6645
|
-
[interfaces/inflection-rule.interfaces.ts:129](https://github.com/hichchidev/hichchi/blob/
|
|
6641
|
+
[interfaces/inflection-rule.interfaces.ts:129](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L129)
|
|
6646
6642
|
|
|
6647
6643
|
</td>
|
|
6648
6644
|
</tr>
|
|
@@ -6664,7 +6660,7 @@ Words with irregular plural forms
|
|
|
6664
6660
|
</td>
|
|
6665
6661
|
<td>
|
|
6666
6662
|
|
|
6667
|
-
[interfaces/inflection-rule.interfaces.ts:134](https://github.com/hichchidev/hichchi/blob/
|
|
6663
|
+
[interfaces/inflection-rule.interfaces.ts:134](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L134)
|
|
6668
6664
|
|
|
6669
6665
|
</td>
|
|
6670
6666
|
</tr>
|
|
@@ -6686,7 +6682,7 @@ Words borrowed from Latin and Greek
|
|
|
6686
6682
|
</td>
|
|
6687
6683
|
<td>
|
|
6688
6684
|
|
|
6689
|
-
[interfaces/inflection-rule.interfaces.ts:139](https://github.com/hichchidev/hichchi/blob/
|
|
6685
|
+
[interfaces/inflection-rule.interfaces.ts:139](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L139)
|
|
6690
6686
|
|
|
6691
6687
|
</td>
|
|
6692
6688
|
</tr>
|
|
@@ -6708,7 +6704,7 @@ Words with specific ending patterns
|
|
|
6708
6704
|
</td>
|
|
6709
6705
|
<td>
|
|
6710
6706
|
|
|
6711
|
-
[interfaces/inflection-rule.interfaces.ts:144](https://github.com/hichchidev/hichchi/blob/
|
|
6707
|
+
[interfaces/inflection-rule.interfaces.ts:144](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L144)
|
|
6712
6708
|
|
|
6713
6709
|
</td>
|
|
6714
6710
|
</tr>
|
|
@@ -6719,7 +6715,7 @@ Words with specific ending patterns
|
|
|
6719
6715
|
|
|
6720
6716
|
### LiteralObject\<T>
|
|
6721
6717
|
|
|
6722
|
-
Defined in: [types/literal-object.type.ts:48](https://github.com/hichchidev/hichchi/blob/
|
|
6718
|
+
Defined in: [types/literal-object.type.ts:48](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/literal-object.type.ts#L48)
|
|
6723
6719
|
|
|
6724
6720
|
Generic interface for objects with string keys and values of a specified type.
|
|
6725
6721
|
|
|
@@ -6810,7 +6806,7 @@ The type of values in the object (defaults to `any`)
|
|
|
6810
6806
|
|
|
6811
6807
|
### PathValueSet
|
|
6812
6808
|
|
|
6813
|
-
Defined in: [interfaces/path-value-set.interface.ts:77](https://github.com/hichchidev/hichchi/blob/
|
|
6809
|
+
Defined in: [interfaces/path-value-set.interface.ts:77](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/path-value-set.interface.ts#L77)
|
|
6814
6810
|
|
|
6815
6811
|
Represents a flattened object where keys are dot-notation paths and values are primitive types.
|
|
6816
6812
|
|
|
@@ -6901,7 +6897,7 @@ userPathValues["profile.address.city"] = "Boston";
|
|
|
6901
6897
|
|
|
6902
6898
|
### PluralSingularRulePair
|
|
6903
6899
|
|
|
6904
|
-
Defined in: [interfaces/inflection-rule.interfaces.ts:70](https://github.com/hichchidev/hichchi/blob/
|
|
6900
|
+
Defined in: [interfaces/inflection-rule.interfaces.ts:70](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L70)
|
|
6905
6901
|
|
|
6906
6902
|
Pair of rule sets for bidirectional singular/plural transformations
|
|
6907
6903
|
|
|
@@ -6964,7 +6960,7 @@ Array of rules for converting singular words to plural form
|
|
|
6964
6960
|
</td>
|
|
6965
6961
|
<td>
|
|
6966
6962
|
|
|
6967
|
-
[interfaces/inflection-rule.interfaces.ts:74](https://github.com/hichchidev/hichchi/blob/
|
|
6963
|
+
[interfaces/inflection-rule.interfaces.ts:74](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L74)
|
|
6968
6964
|
|
|
6969
6965
|
</td>
|
|
6970
6966
|
</tr>
|
|
@@ -6986,7 +6982,7 @@ Array of rules for converting plural words to singular form
|
|
|
6986
6982
|
</td>
|
|
6987
6983
|
<td>
|
|
6988
6984
|
|
|
6989
|
-
[interfaces/inflection-rule.interfaces.ts:79](https://github.com/hichchidev/hichchi/blob/
|
|
6985
|
+
[interfaces/inflection-rule.interfaces.ts:79](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L79)
|
|
6990
6986
|
|
|
6991
6987
|
</td>
|
|
6992
6988
|
</tr>
|
|
@@ -7003,7 +6999,7 @@ type DeepPartial<T> =
|
|
|
7003
6999
|
| T extends infer U[] ? DeepPartial<U>[] : T extends Map<infer K, infer V> ? Map<DeepPartial<K>, DeepPartial<V>> : T extends Set<infer M> ? Set<DeepPartial<M>> : T extends object ? { [K in keyof T]?: DeepPartial<T[K]> } : T;
|
|
7004
7000
|
```
|
|
7005
7001
|
|
|
7006
|
-
Defined in: [types/deep-partial.type.ts:46](https://github.com/hichchidev/hichchi/blob/
|
|
7002
|
+
Defined in: [types/deep-partial.type.ts:46](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/deep-partial.type.ts#L46)
|
|
7007
7003
|
|
|
7008
7004
|
A utility type that recursively makes all properties of an object optional.
|
|
7009
7005
|
|
|
@@ -7088,7 +7084,7 @@ type IsAlreadyInPath<T, U> = U extends object
|
|
|
7088
7084
|
: false;
|
|
7089
7085
|
```
|
|
7090
7086
|
|
|
7091
|
-
Defined in: [types/is-already-in-path.type.ts:25](https://github.com/hichchidev/hichchi/blob/
|
|
7087
|
+
Defined in: [types/is-already-in-path.type.ts:25](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/is-already-in-path.type.ts#L25)
|
|
7092
7088
|
|
|
7093
7089
|
Type predicate that detects circular references in type paths.
|
|
7094
7090
|
|
|
@@ -7155,7 +7151,7 @@ type RecursivelyProcess<T, Path = never> =
|
|
|
7155
7151
|
type IsEmpty<T> = keyof T extends never ? true : false;
|
|
7156
7152
|
```
|
|
7157
7153
|
|
|
7158
|
-
Defined in: [types/is-empty.type.ts:26](https://github.com/hichchidev/hichchi/blob/
|
|
7154
|
+
Defined in: [types/is-empty.type.ts:26](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/is-empty.type.ts#L26)
|
|
7159
7155
|
|
|
7160
7156
|
Type predicate that determines if a type is an empty object type.
|
|
7161
7157
|
|
|
@@ -7213,7 +7209,7 @@ type ProcessedNonEmpty = ProcessObject<{ name: string }>; // { name: string }
|
|
|
7213
7209
|
type IsPrimitive<T> = T extends Primitive ? true : false;
|
|
7214
7210
|
```
|
|
7215
7211
|
|
|
7216
|
-
Defined in: [types/is-primitive.type.ts:31](https://github.com/hichchidev/hichchi/blob/
|
|
7212
|
+
Defined in: [types/is-primitive.type.ts:31](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/is-primitive.type.ts#L31)
|
|
7217
7213
|
|
|
7218
7214
|
Type predicate that determines if a type is a primitive JavaScript value.
|
|
7219
7215
|
|
|
@@ -7271,7 +7267,7 @@ type SerializedObject = SerializeValue<{ foo: string }>; // string
|
|
|
7271
7267
|
type LooseAutocomplete<T> = T | Omit<string, T>;
|
|
7272
7268
|
```
|
|
7273
7269
|
|
|
7274
|
-
Defined in: [types/loose-autocomplete.type.ts:32](https://github.com/hichchidev/hichchi/blob/
|
|
7270
|
+
Defined in: [types/loose-autocomplete.type.ts:32](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/loose-autocomplete.type.ts#L32)
|
|
7275
7271
|
|
|
7276
7272
|
Represents a type for autocompleting string values.
|
|
7277
7273
|
|
|
@@ -7337,7 +7333,7 @@ Matt Pocock (https://www.totaltypescript.com/tips/create-autocomplete-helper-whi
|
|
|
7337
7333
|
type NonNullPrimitive = string | number | boolean | symbol | bigint;
|
|
7338
7334
|
```
|
|
7339
7335
|
|
|
7340
|
-
Defined in: [types/is-primitive.type.ts:5](https://github.com/hichchidev/hichchi/blob/
|
|
7336
|
+
Defined in: [types/is-primitive.type.ts:5](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/is-primitive.type.ts#L5)
|
|
7341
7337
|
|
|
7342
7338
|
---
|
|
7343
7339
|
|
|
@@ -7347,7 +7343,7 @@ Defined in: [types/is-primitive.type.ts:5](https://github.com/hichchidev/hichchi
|
|
|
7347
7343
|
type PartialWithNull<T> = { [p in keyof T]?: T[p] | null };
|
|
7348
7344
|
```
|
|
7349
7345
|
|
|
7350
|
-
Defined in: [types/partial-with-null.type.ts:25](https://github.com/hichchidev/hichchi/blob/
|
|
7346
|
+
Defined in: [types/partial-with-null.type.ts:25](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/partial-with-null.type.ts#L25)
|
|
7351
7347
|
|
|
7352
7348
|
Makes all properties of type T optional and allows them to be null.
|
|
7353
7349
|
|
|
@@ -7404,7 +7400,7 @@ const partialUser: PartialWithNull<User> = {
|
|
|
7404
7400
|
type Prettify<T> = { [K in keyof T]: T[K] } & object;
|
|
7405
7401
|
```
|
|
7406
7402
|
|
|
7407
|
-
Defined in: [types/prettify.type.ts:22](https://github.com/hichchidev/hichchi/blob/
|
|
7403
|
+
Defined in: [types/prettify.type.ts:22](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/prettify.type.ts#L22)
|
|
7408
7404
|
|
|
7409
7405
|
Utility type for creating a clean object type from a complex type.
|
|
7410
7406
|
|
|
@@ -7459,7 +7455,7 @@ type SimpleType = Prettify<ComplexType>;
|
|
|
7459
7455
|
type Primitive = string | number | boolean | symbol | bigint | null | undefined;
|
|
7460
7456
|
```
|
|
7461
7457
|
|
|
7462
|
-
Defined in: [types/is-primitive.type.ts:3](https://github.com/hichchidev/hichchi/blob/
|
|
7458
|
+
Defined in: [types/is-primitive.type.ts:3](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/is-primitive.type.ts#L3)
|
|
7463
7459
|
|
|
7464
7460
|
---
|
|
7465
7461
|
|
|
@@ -7469,7 +7465,7 @@ Defined in: [types/is-primitive.type.ts:3](https://github.com/hichchidev/hichchi
|
|
|
7469
7465
|
type Type<T> = (...args) => T;
|
|
7470
7466
|
```
|
|
7471
7467
|
|
|
7472
|
-
Defined in: [types/type.type.ts:21](https://github.com/hichchidev/hichchi/blob/
|
|
7468
|
+
Defined in: [types/type.type.ts:21](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/types/type.type.ts#L21)
|
|
7473
7469
|
|
|
7474
7470
|
Generic constructor type for creating class instances.
|
|
7475
7471
|
|
|
@@ -7557,7 +7553,7 @@ const instance = createInstance(MyService);
|
|
|
7557
7553
|
const CHARACTERS_TO_REMOVE: 2 = 2;
|
|
7558
7554
|
```
|
|
7559
7555
|
|
|
7560
|
-
Defined in: [constants/constants.ts:93](https://github.com/hichchidev/hichchi/blob/
|
|
7556
|
+
Defined in: [constants/constants.ts:93](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/constants/constants.ts#L93)
|
|
7561
7557
|
|
|
7562
7558
|
Number of characters to remove in string truncation operations
|
|
7563
7559
|
|
|
@@ -7592,7 +7588,7 @@ if (result.length > 0) {
|
|
|
7592
7588
|
const CONTEXT_MULTIPLIER: 2 = 2;
|
|
7593
7589
|
```
|
|
7594
7590
|
|
|
7595
|
-
Defined in: [constants/constants.ts:231](https://github.com/hichchidev/hichchi/blob/
|
|
7591
|
+
Defined in: [constants/constants.ts:231](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/constants/constants.ts#L231)
|
|
7596
7592
|
|
|
7597
7593
|
Multiplier for adjusting context length in excerpts
|
|
7598
7594
|
|
|
@@ -7632,7 +7628,7 @@ function getFirstPart(text: string): string {
|
|
|
7632
7628
|
const DEFAULT_BREAK_CHAR: "\n" = "\n";
|
|
7633
7629
|
```
|
|
7634
7630
|
|
|
7635
|
-
Defined in: [constants/constants.ts:147](https://github.com/hichchidev/hichchi/blob/
|
|
7631
|
+
Defined in: [constants/constants.ts:147](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/constants/constants.ts#L147)
|
|
7636
7632
|
|
|
7637
7633
|
Default line break character for word wrapping
|
|
7638
7634
|
|
|
@@ -7662,7 +7658,7 @@ const wrappedText =
|
|
|
7662
7658
|
const DEFAULT_CONTEXT_LENGTH: 40 = 40;
|
|
7663
7659
|
```
|
|
7664
7660
|
|
|
7665
|
-
Defined in: [constants/constants.ts:177](https://github.com/hichchidev/hichchi/blob/
|
|
7661
|
+
Defined in: [constants/constants.ts:177](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/constants/constants.ts#L177)
|
|
7666
7662
|
|
|
7667
7663
|
Default context length for text excerpts
|
|
7668
7664
|
|
|
@@ -7706,7 +7702,7 @@ function generateExcerpt(text: string, searchTerm: string): string {
|
|
|
7706
7702
|
const DEFAULT_ELLIPSIS: "..." = "...";
|
|
7707
7703
|
```
|
|
7708
7704
|
|
|
7709
|
-
Defined in: [constants/constants.ts:201](https://github.com/hichchidev/hichchi/blob/
|
|
7705
|
+
Defined in: [constants/constants.ts:201](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/constants/constants.ts#L201)
|
|
7710
7706
|
|
|
7711
7707
|
Default ellipsis string for indicating truncated text
|
|
7712
7708
|
|
|
@@ -7742,7 +7738,7 @@ const truncated = truncate(longText, 20);
|
|
|
7742
7738
|
const DEFAULT_LINE_LENGTH: 80 = 80;
|
|
7743
7739
|
```
|
|
7744
7740
|
|
|
7745
|
-
Defined in: [constants/constants.ts:129](https://github.com/hichchidev/hichchi/blob/
|
|
7741
|
+
Defined in: [constants/constants.ts:129](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/constants/constants.ts#L129)
|
|
7746
7742
|
|
|
7747
7743
|
Default maximum line length for word wrapping
|
|
7748
7744
|
|
|
@@ -7792,7 +7788,7 @@ function wrapText(
|
|
|
7792
7788
|
const EnglishInflectionRules: InflectionRuleCategories;
|
|
7793
7789
|
```
|
|
7794
7790
|
|
|
7795
|
-
Defined in: [constants/english-inflection-rules.ts:55](https://github.com/hichchidev/hichchi/blob/
|
|
7791
|
+
Defined in: [constants/english-inflection-rules.ts:55](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/constants/english-inflection-rules.ts#L55)
|
|
7796
7792
|
|
|
7797
7793
|
Comprehensive rules for English word inflection (singular/plural transformations)
|
|
7798
7794
|
|
|
@@ -7856,7 +7852,7 @@ function plural(word: string): string {
|
|
|
7856
7852
|
const HEX_PADDING_CHAR: "0" = "0";
|
|
7857
7853
|
```
|
|
7858
7854
|
|
|
7859
|
-
Defined in: [constants/constants.ts:66](https://github.com/hichchidev/hichchi/blob/
|
|
7855
|
+
Defined in: [constants/constants.ts:66](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/constants/constants.ts#L66)
|
|
7860
7856
|
|
|
7861
7857
|
Character used for padding hexadecimal strings
|
|
7862
7858
|
|
|
@@ -7889,7 +7885,7 @@ const paddedHex = hexValue.padStart(HEX_PADDING_LENGTH, HEX_PADDING_CHAR);
|
|
|
7889
7885
|
const HEX_PADDING_LENGTH: 2 = 2;
|
|
7890
7886
|
```
|
|
7891
7887
|
|
|
7892
|
-
Defined in: [constants/constants.ts:43](https://github.com/hichchidev/hichchi/blob/
|
|
7888
|
+
Defined in: [constants/constants.ts:43](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/constants/constants.ts#L43)
|
|
7893
7889
|
|
|
7894
7890
|
Minimum length for padded hexadecimal strings
|
|
7895
7891
|
|
|
@@ -7924,7 +7920,7 @@ const hexByte = byteValue
|
|
|
7924
7920
|
const HEX_RADIX: 16 = 16;
|
|
7925
7921
|
```
|
|
7926
7922
|
|
|
7927
|
-
Defined in: [constants/constants.ts:20](https://github.com/hichchidev/hichchi/blob/
|
|
7923
|
+
Defined in: [constants/constants.ts:20](https://github.com/hichchidev/hichchi/blob/1821ea22bf9e9b89c932111f16da4943c07c58c7/libs/utils/src/constants/constants.ts#L20)
|
|
7928
7924
|
|
|
7929
7925
|
Base for hexadecimal number conversion
|
|
7930
7926
|
|