@hichchi/utils 0.0.8 → 0.0.10
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 +8 -0
- package/README.md +115 -115
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 0.0.9 (2026-02-20)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for utils to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 0.0.8 (2026-02-19)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for utils to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
1
9
|
## 0.0.7 (2026-02-18)
|
|
2
10
|
|
|
3
11
|
This was a version bump only for utils to align it with other projects, there were no code changes.
|
package/README.md
CHANGED
|
@@ -296,7 +296,7 @@ Complete technical reference for all classes, interfaces, methods, and types in
|
|
|
296
296
|
|
|
297
297
|
### TemplateTag
|
|
298
298
|
|
|
299
|
-
Defined in: [enums/template-tag.enum.ts:15](https://github.com/hichchidev/hichchi/blob/
|
|
299
|
+
Defined in: [enums/template-tag.enum.ts:15](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L15)
|
|
300
300
|
|
|
301
301
|
Template tags for string transformations
|
|
302
302
|
|
|
@@ -337,7 +337,7 @@ corresponding transformation to the provided value.
|
|
|
337
337
|
</td>
|
|
338
338
|
<td>
|
|
339
339
|
|
|
340
|
-
[enums/template-tag.enum.ts:22](https://github.com/hichchidev/hichchi/blob/
|
|
340
|
+
[enums/template-tag.enum.ts:22](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L22)
|
|
341
341
|
|
|
342
342
|
</td>
|
|
343
343
|
</tr>
|
|
@@ -354,7 +354,7 @@ corresponding transformation to the provided value.
|
|
|
354
354
|
</td>
|
|
355
355
|
<td>
|
|
356
356
|
|
|
357
|
-
[enums/template-tag.enum.ts:21](https://github.com/hichchidev/hichchi/blob/
|
|
357
|
+
[enums/template-tag.enum.ts:21](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L21)
|
|
358
358
|
|
|
359
359
|
</td>
|
|
360
360
|
</tr>
|
|
@@ -371,7 +371,7 @@ corresponding transformation to the provided value.
|
|
|
371
371
|
</td>
|
|
372
372
|
<td>
|
|
373
373
|
|
|
374
|
-
[enums/template-tag.enum.ts:29](https://github.com/hichchidev/hichchi/blob/
|
|
374
|
+
[enums/template-tag.enum.ts:29](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L29)
|
|
375
375
|
|
|
376
376
|
</td>
|
|
377
377
|
</tr>
|
|
@@ -388,7 +388,7 @@ corresponding transformation to the provided value.
|
|
|
388
388
|
</td>
|
|
389
389
|
<td>
|
|
390
390
|
|
|
391
|
-
[enums/template-tag.enum.ts:32](https://github.com/hichchidev/hichchi/blob/
|
|
391
|
+
[enums/template-tag.enum.ts:32](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L32)
|
|
392
392
|
|
|
393
393
|
</td>
|
|
394
394
|
</tr>
|
|
@@ -405,7 +405,7 @@ corresponding transformation to the provided value.
|
|
|
405
405
|
</td>
|
|
406
406
|
<td>
|
|
407
407
|
|
|
408
|
-
[enums/template-tag.enum.ts:24](https://github.com/hichchidev/hichchi/blob/
|
|
408
|
+
[enums/template-tag.enum.ts:24](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L24)
|
|
409
409
|
|
|
410
410
|
</td>
|
|
411
411
|
</tr>
|
|
@@ -422,7 +422,7 @@ corresponding transformation to the provided value.
|
|
|
422
422
|
</td>
|
|
423
423
|
<td>
|
|
424
424
|
|
|
425
|
-
[enums/template-tag.enum.ts:19](https://github.com/hichchidev/hichchi/blob/
|
|
425
|
+
[enums/template-tag.enum.ts:19](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L19)
|
|
426
426
|
|
|
427
427
|
</td>
|
|
428
428
|
</tr>
|
|
@@ -439,7 +439,7 @@ corresponding transformation to the provided value.
|
|
|
439
439
|
</td>
|
|
440
440
|
<td>
|
|
441
441
|
|
|
442
|
-
[enums/template-tag.enum.ts:27](https://github.com/hichchidev/hichchi/blob/
|
|
442
|
+
[enums/template-tag.enum.ts:27](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L27)
|
|
443
443
|
|
|
444
444
|
</td>
|
|
445
445
|
</tr>
|
|
@@ -456,7 +456,7 @@ corresponding transformation to the provided value.
|
|
|
456
456
|
</td>
|
|
457
457
|
<td>
|
|
458
458
|
|
|
459
|
-
[enums/template-tag.enum.ts:31](https://github.com/hichchidev/hichchi/blob/
|
|
459
|
+
[enums/template-tag.enum.ts:31](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L31)
|
|
460
460
|
|
|
461
461
|
</td>
|
|
462
462
|
</tr>
|
|
@@ -473,7 +473,7 @@ corresponding transformation to the provided value.
|
|
|
473
473
|
</td>
|
|
474
474
|
<td>
|
|
475
475
|
|
|
476
|
-
[enums/template-tag.enum.ts:23](https://github.com/hichchidev/hichchi/blob/
|
|
476
|
+
[enums/template-tag.enum.ts:23](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L23)
|
|
477
477
|
|
|
478
478
|
</td>
|
|
479
479
|
</tr>
|
|
@@ -490,7 +490,7 @@ corresponding transformation to the provided value.
|
|
|
490
490
|
</td>
|
|
491
491
|
<td>
|
|
492
492
|
|
|
493
|
-
[enums/template-tag.enum.ts:20](https://github.com/hichchidev/hichchi/blob/
|
|
493
|
+
[enums/template-tag.enum.ts:20](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L20)
|
|
494
494
|
|
|
495
495
|
</td>
|
|
496
496
|
</tr>
|
|
@@ -507,7 +507,7 @@ corresponding transformation to the provided value.
|
|
|
507
507
|
</td>
|
|
508
508
|
<td>
|
|
509
509
|
|
|
510
|
-
[enums/template-tag.enum.ts:30](https://github.com/hichchidev/hichchi/blob/
|
|
510
|
+
[enums/template-tag.enum.ts:30](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L30)
|
|
511
511
|
|
|
512
512
|
</td>
|
|
513
513
|
</tr>
|
|
@@ -524,7 +524,7 @@ corresponding transformation to the provided value.
|
|
|
524
524
|
</td>
|
|
525
525
|
<td>
|
|
526
526
|
|
|
527
|
-
[enums/template-tag.enum.ts:17](https://github.com/hichchidev/hichchi/blob/
|
|
527
|
+
[enums/template-tag.enum.ts:17](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L17)
|
|
528
528
|
|
|
529
529
|
</td>
|
|
530
530
|
</tr>
|
|
@@ -541,7 +541,7 @@ corresponding transformation to the provided value.
|
|
|
541
541
|
</td>
|
|
542
542
|
<td>
|
|
543
543
|
|
|
544
|
-
[enums/template-tag.enum.ts:26](https://github.com/hichchidev/hichchi/blob/
|
|
544
|
+
[enums/template-tag.enum.ts:26](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L26)
|
|
545
545
|
|
|
546
546
|
</td>
|
|
547
547
|
</tr>
|
|
@@ -558,7 +558,7 @@ corresponding transformation to the provided value.
|
|
|
558
558
|
</td>
|
|
559
559
|
<td>
|
|
560
560
|
|
|
561
|
-
[enums/template-tag.enum.ts:16](https://github.com/hichchidev/hichchi/blob/
|
|
561
|
+
[enums/template-tag.enum.ts:16](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L16)
|
|
562
562
|
|
|
563
563
|
</td>
|
|
564
564
|
</tr>
|
|
@@ -575,7 +575,7 @@ corresponding transformation to the provided value.
|
|
|
575
575
|
</td>
|
|
576
576
|
<td>
|
|
577
577
|
|
|
578
|
-
[enums/template-tag.enum.ts:28](https://github.com/hichchidev/hichchi/blob/
|
|
578
|
+
[enums/template-tag.enum.ts:28](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L28)
|
|
579
579
|
|
|
580
580
|
</td>
|
|
581
581
|
</tr>
|
|
@@ -592,7 +592,7 @@ corresponding transformation to the provided value.
|
|
|
592
592
|
</td>
|
|
593
593
|
<td>
|
|
594
594
|
|
|
595
|
-
[enums/template-tag.enum.ts:25](https://github.com/hichchidev/hichchi/blob/
|
|
595
|
+
[enums/template-tag.enum.ts:25](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L25)
|
|
596
596
|
|
|
597
597
|
</td>
|
|
598
598
|
</tr>
|
|
@@ -609,7 +609,7 @@ corresponding transformation to the provided value.
|
|
|
609
609
|
</td>
|
|
610
610
|
<td>
|
|
611
611
|
|
|
612
|
-
[enums/template-tag.enum.ts:18](https://github.com/hichchidev/hichchi/blob/
|
|
612
|
+
[enums/template-tag.enum.ts:18](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/enums/template-tag.enum.ts#L18)
|
|
613
613
|
|
|
614
614
|
</td>
|
|
615
615
|
</tr>
|
|
@@ -624,7 +624,7 @@ corresponding transformation to the provided value.
|
|
|
624
624
|
function applyTemplate(str, prefix): string;
|
|
625
625
|
```
|
|
626
626
|
|
|
627
|
-
Defined in: [utils/string-template.utils.ts:83](https://github.com/hichchidev/hichchi/blob/
|
|
627
|
+
Defined in: [utils/string-template.utils.ts:83](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string-template.utils.ts#L83)
|
|
628
628
|
|
|
629
629
|
Applies a value to a template string containing transformation tags.
|
|
630
630
|
|
|
@@ -747,7 +747,7 @@ applyTemplate(
|
|
|
747
747
|
function applyTemplates(str, prefixes): string;
|
|
748
748
|
```
|
|
749
749
|
|
|
750
|
-
Defined in: [utils/string-template.utils.ts:211](https://github.com/hichchidev/hichchi/blob/
|
|
750
|
+
Defined in: [utils/string-template.utils.ts:211](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string-template.utils.ts#L211)
|
|
751
751
|
|
|
752
752
|
Applies multiple named template transformations to a string with different values for each prefix.
|
|
753
753
|
|
|
@@ -915,7 +915,7 @@ CREATE INDEX idx_#{table.snakeCase}_#{field.snakeCase} ON #{table.snakeCase}(#{f
|
|
|
915
915
|
function breakToWords(str): string[];
|
|
916
916
|
```
|
|
917
917
|
|
|
918
|
-
Defined in: [utils/string.utils.ts:47](https://github.com/hichchidev/hichchi/blob/
|
|
918
|
+
Defined in: [utils/string.utils.ts:47](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L47)
|
|
919
919
|
|
|
920
920
|
Breaks a string into an array of words based on common separator patterns.
|
|
921
921
|
|
|
@@ -990,7 +990,7 @@ breakToWords("123Test456"); // ['123', 'test', '456']
|
|
|
990
990
|
function breakToWords(str, format): string;
|
|
991
991
|
```
|
|
992
992
|
|
|
993
|
-
Defined in: [utils/string.utils.ts:76](https://github.com/hichchidev/hichchi/blob/
|
|
993
|
+
Defined in: [utils/string.utils.ts:76](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L76)
|
|
994
994
|
|
|
995
995
|
Breaks a string into words and formats them using a provided function.
|
|
996
996
|
|
|
@@ -1078,7 +1078,7 @@ breakToWords("SYSTEM_ERROR", (word) => word.toLowerCase()); // "system error"
|
|
|
1078
1078
|
function countOccurrences(str, searchValue, caseSensitive?): number;
|
|
1079
1079
|
```
|
|
1080
1080
|
|
|
1081
|
-
Defined in: [utils/string.utils.ts:1288](https://github.com/hichchidev/hichchi/blob/
|
|
1081
|
+
Defined in: [utils/string.utils.ts:1288](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1288)
|
|
1082
1082
|
|
|
1083
1083
|
Counts the occurrences of a substring within a string.
|
|
1084
1084
|
|
|
@@ -1185,7 +1185,7 @@ countOccurrences("Hello hello", "hello", true); // 1
|
|
|
1185
1185
|
function createExcerpt(text, searchTerm, contextLength?, ellipsis?): string;
|
|
1186
1186
|
```
|
|
1187
1187
|
|
|
1188
|
-
Defined in: [utils/string.utils.ts:721](https://github.com/hichchidev/hichchi/blob/
|
|
1188
|
+
Defined in: [utils/string.utils.ts:721](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L721)
|
|
1189
1189
|
|
|
1190
1190
|
Creates an excerpt from a longer text by extracting a portion around a search term.
|
|
1191
1191
|
Useful for search result highlighting or previews.
|
|
@@ -1320,7 +1320,7 @@ createExcerpt(article, "consectetur", 15, "[...]");
|
|
|
1320
1320
|
function deepCopy<T>(obj): T;
|
|
1321
1321
|
```
|
|
1322
1322
|
|
|
1323
|
-
Defined in: [utils/object.utils.ts:23](https://github.com/hichchidev/hichchi/blob/
|
|
1323
|
+
Defined in: [utils/object.utils.ts:23](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L23)
|
|
1324
1324
|
|
|
1325
1325
|
Deep copy an object.
|
|
1326
1326
|
|
|
@@ -1405,7 +1405,7 @@ const copiedObject = deepCopy(object);
|
|
|
1405
1405
|
function dottedPathObjectToNested<R>(pathValueSet): R;
|
|
1406
1406
|
```
|
|
1407
1407
|
|
|
1408
|
-
Defined in: [utils/object.utils.ts:549](https://github.com/hichchidev/hichchi/blob/
|
|
1408
|
+
Defined in: [utils/object.utils.ts:549](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L549)
|
|
1409
1409
|
|
|
1410
1410
|
Converts a flattened DottedPathValueObject back into a nested object structure.
|
|
1411
1411
|
|
|
@@ -1549,7 +1549,7 @@ const userData = dottedPathObjectToNested<User>(flatData);
|
|
|
1549
1549
|
function escapeRegExp(str): string;
|
|
1550
1550
|
```
|
|
1551
1551
|
|
|
1552
|
-
Defined in: [utils/string.utils.ts:1134](https://github.com/hichchidev/hichchi/blob/
|
|
1552
|
+
Defined in: [utils/string.utils.ts:1134](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1134)
|
|
1553
1553
|
|
|
1554
1554
|
Escapes special characters in a string for use in regular expressions.
|
|
1555
1555
|
|
|
@@ -1608,7 +1608,7 @@ const regex = new RegExp(escapeRegExp(userInput));
|
|
|
1608
1608
|
function extractEmails(str): string[];
|
|
1609
1609
|
```
|
|
1610
1610
|
|
|
1611
|
-
Defined in: [utils/string.utils.ts:456](https://github.com/hichchidev/hichchi/blob/
|
|
1611
|
+
Defined in: [utils/string.utils.ts:456](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L456)
|
|
1612
1612
|
|
|
1613
1613
|
Extracts all email addresses from a string.
|
|
1614
1614
|
|
|
@@ -1664,7 +1664,7 @@ extractEmails("Contact us at support@example.com or sales@example.com");
|
|
|
1664
1664
|
function extractUrls(str): string[];
|
|
1665
1665
|
```
|
|
1666
1666
|
|
|
1667
|
-
Defined in: [utils/string.utils.ts:475](https://github.com/hichchidev/hichchi/blob/
|
|
1667
|
+
Defined in: [utils/string.utils.ts:475](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L475)
|
|
1668
1668
|
|
|
1669
1669
|
Extracts all URLs from a string.
|
|
1670
1670
|
|
|
@@ -1720,7 +1720,7 @@ extractUrls("Visit https://example.com or http://test.org/page?id=5");
|
|
|
1720
1720
|
function filterByObject<T>(items, filters): T[];
|
|
1721
1721
|
```
|
|
1722
1722
|
|
|
1723
|
-
Defined in: [utils/object.utils.ts:1082](https://github.com/hichchidev/hichchi/blob/
|
|
1723
|
+
Defined in: [utils/object.utils.ts:1082](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L1082)
|
|
1724
1724
|
|
|
1725
1725
|
Filters items by recursively matching nested property values.
|
|
1726
1726
|
|
|
@@ -1796,7 +1796,7 @@ Implementation of the format function that handles both overloads.
|
|
|
1796
1796
|
function format(template, ...values): string;
|
|
1797
1797
|
```
|
|
1798
1798
|
|
|
1799
|
-
Defined in: [utils/string.utils.ts:1220](https://github.com/hichchidev/hichchi/blob/
|
|
1799
|
+
Defined in: [utils/string.utils.ts:1220](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1220)
|
|
1800
1800
|
|
|
1801
1801
|
Formats a string by replacing indexed placeholders with provided values.
|
|
1802
1802
|
|
|
@@ -1872,7 +1872,7 @@ format("User {0} has {1} points", "John", 100);
|
|
|
1872
1872
|
function format(template, values): string;
|
|
1873
1873
|
```
|
|
1874
1874
|
|
|
1875
|
-
Defined in: [utils/string.utils.ts:1239](https://github.com/hichchidev/hichchi/blob/
|
|
1875
|
+
Defined in: [utils/string.utils.ts:1239](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1239)
|
|
1876
1876
|
|
|
1877
1877
|
Formats a string by replacing named placeholders with values from an object.
|
|
1878
1878
|
|
|
@@ -1952,7 +1952,7 @@ format("Hello, {name}! You have {count} messages.", {
|
|
|
1952
1952
|
function getEnumValues<T>(e): T[keyof T][];
|
|
1953
1953
|
```
|
|
1954
1954
|
|
|
1955
|
-
Defined in: [utils/object.utils.ts:1070](https://github.com/hichchidev/hichchi/blob/
|
|
1955
|
+
Defined in: [utils/object.utils.ts:1070](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L1070)
|
|
1956
1956
|
|
|
1957
1957
|
Extracts all values from a TypeScript enum, handling both string and numeric enum types correctly.
|
|
1958
1958
|
|
|
@@ -2121,7 +2121,7 @@ Object.values The underlying method used to extract enum entries
|
|
|
2121
2121
|
function getFileExt(mimeType, allowedMimeTypes?): string | undefined;
|
|
2122
2122
|
```
|
|
2123
2123
|
|
|
2124
|
-
Defined in: [utils/file.utils.ts:1265](https://github.com/hichchidev/hichchi/blob/
|
|
2124
|
+
Defined in: [utils/file.utils.ts:1265](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/file.utils.ts#L1265)
|
|
2125
2125
|
|
|
2126
2126
|
Get the file extension of the given mime type.
|
|
2127
2127
|
|
|
@@ -2205,7 +2205,7 @@ const extension = getFileExt('image/jpeg', customMimeTypes);
|
|
|
2205
2205
|
function getFileSize(size, round?): string;
|
|
2206
2206
|
```
|
|
2207
2207
|
|
|
2208
|
-
Defined in: [utils/file.utils.ts:1296](https://github.com/hichchidev/hichchi/blob/
|
|
2208
|
+
Defined in: [utils/file.utils.ts:1296](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/file.utils.ts#L1296)
|
|
2209
2209
|
|
|
2210
2210
|
Get file size in human-readable format.
|
|
2211
2211
|
|
|
@@ -2291,7 +2291,7 @@ const largeFileSize = getFileSize(1073741824);
|
|
|
2291
2291
|
function getMapKey(map, value): string | undefined;
|
|
2292
2292
|
```
|
|
2293
2293
|
|
|
2294
|
-
Defined in: [utils/object.utils.ts:53](https://github.com/hichchidev/hichchi/blob/
|
|
2294
|
+
Defined in: [utils/object.utils.ts:53](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L53)
|
|
2295
2295
|
|
|
2296
2296
|
Get the key of a map by value.
|
|
2297
2297
|
|
|
@@ -2373,7 +2373,7 @@ const key = getMapKey(user, "value2");
|
|
|
2373
2373
|
function getMapKeys(map, partialValue): string[];
|
|
2374
2374
|
```
|
|
2375
2375
|
|
|
2376
|
-
Defined in: [utils/object.utils.ts:122](https://github.com/hichchidev/hichchi/blob/
|
|
2376
|
+
Defined in: [utils/object.utils.ts:122](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L122)
|
|
2377
2377
|
|
|
2378
2378
|
Retrieves all keys from a Map where the corresponding values contain a specified substring.
|
|
2379
2379
|
|
|
@@ -2497,7 +2497,7 @@ const messageKeys = getMapKeys(translations, "message");
|
|
|
2497
2497
|
function getValueByPath<T>(obj, path): T | undefined;
|
|
2498
2498
|
```
|
|
2499
2499
|
|
|
2500
|
-
Defined in: [utils/object.utils.ts:379](https://github.com/hichchidev/hichchi/blob/
|
|
2500
|
+
Defined in: [utils/object.utils.ts:379](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L379)
|
|
2501
2501
|
|
|
2502
2502
|
Gets a value from a nested object using a dot-notation path string.
|
|
2503
2503
|
|
|
@@ -2623,7 +2623,7 @@ const name = getValueByPath<string>(data, "users[1].name");
|
|
|
2623
2623
|
function groupBy<K, V>(list, keyGetter): Map<K, V[]>;
|
|
2624
2624
|
```
|
|
2625
2625
|
|
|
2626
|
-
Defined in: [utils/object.utils.ts:237](https://github.com/hichchidev/hichchi/blob/
|
|
2626
|
+
Defined in: [utils/object.utils.ts:237](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L237)
|
|
2627
2627
|
|
|
2628
2628
|
Groups an array of objects into a Map based on a key extraction function.
|
|
2629
2629
|
|
|
@@ -2822,7 +2822,7 @@ const tasksByStatus = groupBy(tasks, (task) => task.completed);
|
|
|
2822
2822
|
function hashString(str): Promise<string>;
|
|
2823
2823
|
```
|
|
2824
2824
|
|
|
2825
|
-
Defined in: [utils/string.utils.ts:499](https://github.com/hichchidev/hichchi/blob/
|
|
2825
|
+
Defined in: [utils/string.utils.ts:499](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L499)
|
|
2826
2826
|
|
|
2827
2827
|
Converts a string to a secure hash using SHA-256.
|
|
2828
2828
|
|
|
@@ -2882,7 +2882,7 @@ await hashString("password123");
|
|
|
2882
2882
|
function hasOwnAll(obj, props): boolean;
|
|
2883
2883
|
```
|
|
2884
2884
|
|
|
2885
|
-
Defined in: [utils/object.utils.ts:965](https://github.com/hichchidev/hichchi/blob/
|
|
2885
|
+
Defined in: [utils/object.utils.ts:965](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L965)
|
|
2886
2886
|
|
|
2887
2887
|
Checks if an object has all specified properties as its own properties (not inherited).
|
|
2888
2888
|
|
|
@@ -3051,7 +3051,7 @@ Object.hasOwn The underlying method used for property checking
|
|
|
3051
3051
|
function htmlToText(str): string;
|
|
3052
3052
|
```
|
|
3053
3053
|
|
|
3054
|
-
Defined in: [utils/string.utils.ts:1001](https://github.com/hichchidev/hichchi/blob/
|
|
3054
|
+
Defined in: [utils/string.utils.ts:1001](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1001)
|
|
3055
3055
|
|
|
3056
3056
|
Remove HTML tags from a string and return plain text.
|
|
3057
3057
|
|
|
@@ -3106,7 +3106,7 @@ htmlToText("<h1>Hello World</h1>"); // "Hello World"
|
|
|
3106
3106
|
function isAlphanumeric(str): boolean;
|
|
3107
3107
|
```
|
|
3108
3108
|
|
|
3109
|
-
Defined in: [utils/string.utils.ts:1325](https://github.com/hichchidev/hichchi/blob/
|
|
3109
|
+
Defined in: [utils/string.utils.ts:1325](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1325)
|
|
3110
3110
|
|
|
3111
3111
|
Checks if a string contains only alphanumeric characters.
|
|
3112
3112
|
|
|
@@ -3162,7 +3162,7 @@ isAlphanumeric("abc-123"); // false
|
|
|
3162
3162
|
function isArray<T>(value): value is T[];
|
|
3163
3163
|
```
|
|
3164
3164
|
|
|
3165
|
-
Defined in: [utils/assertions.utils.ts:42](https://github.com/hichchidev/hichchi/blob/
|
|
3165
|
+
Defined in: [utils/assertions.utils.ts:42](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/assertions.utils.ts#L42)
|
|
3166
3166
|
|
|
3167
3167
|
Type-safe utility to check if a value is an array of a specific type.
|
|
3168
3168
|
|
|
@@ -3271,7 +3271,7 @@ async function createUser(
|
|
|
3271
3271
|
function isObject<T>(value?): value is T;
|
|
3272
3272
|
```
|
|
3273
3273
|
|
|
3274
|
-
Defined in: [utils/assertions.utils.ts:91](https://github.com/hichchidev/hichchi/blob/
|
|
3274
|
+
Defined in: [utils/assertions.utils.ts:91](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/assertions.utils.ts#L91)
|
|
3275
3275
|
|
|
3276
3276
|
Type-safe utility to check if a value is a non-array object of a specific type.
|
|
3277
3277
|
|
|
@@ -3388,7 +3388,7 @@ function formatUserName(user?: User | string): string {
|
|
|
3388
3388
|
function isObjectWith<T>(value, propertyName): value is T;
|
|
3389
3389
|
```
|
|
3390
3390
|
|
|
3391
|
-
Defined in: [utils/assertions.utils.ts:158](https://github.com/hichchidev/hichchi/blob/
|
|
3391
|
+
Defined in: [utils/assertions.utils.ts:158](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/assertions.utils.ts#L158)
|
|
3392
3392
|
|
|
3393
3393
|
Type-safe utility to check if a value is an object with a specific property.
|
|
3394
3394
|
|
|
@@ -3536,7 +3536,7 @@ async function handleResponse(response: unknown): Promise<void> {
|
|
|
3536
3536
|
function isValidRedirectUrl(url, allowedDomains): boolean;
|
|
3537
3537
|
```
|
|
3538
3538
|
|
|
3539
|
-
Defined in: [utils/url.utils.ts:100](https://github.com/hichchidev/hichchi/blob/
|
|
3539
|
+
Defined in: [utils/url.utils.ts:100](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/url.utils.ts#L100)
|
|
3540
3540
|
|
|
3541
3541
|
Validates if a redirect URL is allowed based on a whitelist of permitted domains.
|
|
3542
3542
|
|
|
@@ -3703,7 +3703,7 @@ This function catches all URL parsing errors and returns false instead of throwi
|
|
|
3703
3703
|
function maskString(str, visibleStart?, visibleEnd?, maskChar?): string;
|
|
3704
3704
|
```
|
|
3705
3705
|
|
|
3706
|
-
Defined in: [utils/string.utils.ts:584](https://github.com/hichchidev/hichchi/blob/
|
|
3706
|
+
Defined in: [utils/string.utils.ts:584](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L584)
|
|
3707
3707
|
|
|
3708
3708
|
Masks a portion of a string, useful for displaying sensitive information.
|
|
3709
3709
|
|
|
@@ -3840,7 +3840,7 @@ maskString("+1-555-123-4567", 0, 4);
|
|
|
3840
3840
|
function normalizeString(str): string;
|
|
3841
3841
|
```
|
|
3842
3842
|
|
|
3843
|
-
Defined in: [utils/string.utils.ts:767](https://github.com/hichchidev/hichchi/blob/
|
|
3843
|
+
Defined in: [utils/string.utils.ts:767](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L767)
|
|
3844
3844
|
|
|
3845
3845
|
Normalizes a string by removing accents, diacritics, and converting to lowercase.
|
|
3846
3846
|
|
|
@@ -3898,7 +3898,7 @@ normalizeString("ESPAÑA"); // "espana"
|
|
|
3898
3898
|
function objectToDottedPathValueObject(obj): DottedPathValueObject;
|
|
3899
3899
|
```
|
|
3900
3900
|
|
|
3901
|
-
Defined in: [utils/object.utils.ts:460](https://github.com/hichchidev/hichchi/blob/
|
|
3901
|
+
Defined in: [utils/object.utils.ts:460](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L460)
|
|
3902
3902
|
|
|
3903
3903
|
Converts a nested object into a flattened DottedPathValueObject representation.
|
|
3904
3904
|
|
|
@@ -3997,7 +3997,7 @@ const flattened = objectToDottedPathValueObject(user);
|
|
|
3997
3997
|
function omit<T>(obj, keys?): Partial<T>;
|
|
3998
3998
|
```
|
|
3999
3999
|
|
|
4000
|
-
Defined in: [utils/object.utils.ts:683](https://github.com/hichchidev/hichchi/blob/
|
|
4000
|
+
Defined in: [utils/object.utils.ts:683](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L683)
|
|
4001
4001
|
|
|
4002
4002
|
Creates a new object by omitting specified properties and undefined values from the original object.
|
|
4003
4003
|
|
|
@@ -4177,7 +4177,7 @@ const publicProfile = omit(userProfile, ["password", "internalNotes"]);
|
|
|
4177
4177
|
function padString(str, length, char?, padEnd?): string;
|
|
4178
4178
|
```
|
|
4179
4179
|
|
|
4180
|
-
Defined in: [utils/string.utils.ts:1111](https://github.com/hichchidev/hichchi/blob/
|
|
4180
|
+
Defined in: [utils/string.utils.ts:1111](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1111)
|
|
4181
4181
|
|
|
4182
4182
|
Pads a string to a specified length with a specified character.
|
|
4183
4183
|
|
|
@@ -4306,7 +4306,7 @@ padString("Hello", 10, "0", false); // "00000Hello"
|
|
|
4306
4306
|
function plural(str): string;
|
|
4307
4307
|
```
|
|
4308
4308
|
|
|
4309
|
-
Defined in: [utils/string.utils.ts:1049](https://github.com/hichchidev/hichchi/blob/
|
|
4309
|
+
Defined in: [utils/string.utils.ts:1049](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1049)
|
|
4310
4310
|
|
|
4311
4311
|
Converts a singular English word to its plural form.
|
|
4312
4312
|
|
|
@@ -4395,7 +4395,7 @@ plural("analysis"); // "analyses"
|
|
|
4395
4395
|
function prune<T>(obj, omitPrototype?): T;
|
|
4396
4396
|
```
|
|
4397
4397
|
|
|
4398
|
-
Defined in: [utils/object.utils.ts:838](https://github.com/hichchidev/hichchi/blob/
|
|
4398
|
+
Defined in: [utils/object.utils.ts:838](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L838)
|
|
4399
4399
|
|
|
4400
4400
|
Creates a deep copy of an object with all empty, null, undefined, and optionally prototype properties removed.
|
|
4401
4401
|
|
|
@@ -4626,7 +4626,7 @@ const prunedOwnOnly = prune(user, true);
|
|
|
4626
4626
|
function randomString(length, charset?): string;
|
|
4627
4627
|
```
|
|
4628
4628
|
|
|
4629
|
-
Defined in: [utils/string.utils.ts:536](https://github.com/hichchidev/hichchi/blob/
|
|
4629
|
+
Defined in: [utils/string.utils.ts:536](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L536)
|
|
4630
4630
|
|
|
4631
4631
|
Generates a random string with specified length and character set.
|
|
4632
4632
|
|
|
@@ -4708,7 +4708,7 @@ randomString(4, "0123456789");
|
|
|
4708
4708
|
function removeWhitespace(str): string;
|
|
4709
4709
|
```
|
|
4710
4710
|
|
|
4711
|
-
Defined in: [utils/string.utils.ts:1342](https://github.com/hichchidev/hichchi/blob/
|
|
4711
|
+
Defined in: [utils/string.utils.ts:1342](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1342)
|
|
4712
4712
|
|
|
4713
4713
|
Removes all whitespace from a string.
|
|
4714
4714
|
|
|
@@ -4764,7 +4764,7 @@ removeWhitespace(" spaces tabs "); // "spacestabs"
|
|
|
4764
4764
|
function reverse(str): string;
|
|
4765
4765
|
```
|
|
4766
4766
|
|
|
4767
|
-
Defined in: [utils/string.utils.ts:1308](https://github.com/hichchidev/hichchi/blob/
|
|
4767
|
+
Defined in: [utils/string.utils.ts:1308](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1308)
|
|
4768
4768
|
|
|
4769
4769
|
Reverses a string.
|
|
4770
4770
|
|
|
@@ -4820,7 +4820,7 @@ reverse("12345"); // "54321"
|
|
|
4820
4820
|
function searchMapValues(map, partialValue): string[];
|
|
4821
4821
|
```
|
|
4822
4822
|
|
|
4823
|
-
Defined in: [utils/object.utils.ts:327](https://github.com/hichchidev/hichchi/blob/
|
|
4823
|
+
Defined in: [utils/object.utils.ts:327](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/object.utils.ts#L327)
|
|
4824
4824
|
|
|
4825
4825
|
Retrieves all values from a Map that contain a specified substring.
|
|
4826
4826
|
|
|
@@ -4957,7 +4957,7 @@ const productionValues = searchMapValues(config, "production");
|
|
|
4957
4957
|
function singular(str): string;
|
|
4958
4958
|
```
|
|
4959
4959
|
|
|
4960
|
-
Defined in: [utils/string.utils.ts:1387](https://github.com/hichchidev/hichchi/blob/
|
|
4960
|
+
Defined in: [utils/string.utils.ts:1387](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1387)
|
|
4961
4961
|
|
|
4962
4962
|
Converts plural English words to their singular form.
|
|
4963
4963
|
|
|
@@ -5042,7 +5042,7 @@ singular("phenomena"); // "phenomenon"
|
|
|
5042
5042
|
function slugify(str, separator?): string;
|
|
5043
5043
|
```
|
|
5044
5044
|
|
|
5045
|
-
Defined in: [utils/string.utils.ts:430](https://github.com/hichchidev/hichchi/blob/
|
|
5045
|
+
Defined in: [utils/string.utils.ts:430](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L430)
|
|
5046
5046
|
|
|
5047
5047
|
Generates a slug from a string, suitable for URLs or file names.
|
|
5048
5048
|
|
|
@@ -5129,7 +5129,7 @@ slugify("Blog Post", "_"); // "blog_post"
|
|
|
5129
5129
|
function stringSimilarity(str1, str2): number;
|
|
5130
5130
|
```
|
|
5131
5131
|
|
|
5132
|
-
Defined in: [utils/string.utils.ts:380](https://github.com/hichchidev/hichchi/blob/
|
|
5132
|
+
Defined in: [utils/string.utils.ts:380](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L380)
|
|
5133
5133
|
|
|
5134
5134
|
Compares two strings for similarity using Levenshtein distance algorithm.
|
|
5135
5135
|
|
|
@@ -5207,7 +5207,7 @@ stringSimilarity("same", "same"); // 1.0 (identical)
|
|
|
5207
5207
|
function toCamelCase(str?): string;
|
|
5208
5208
|
```
|
|
5209
5209
|
|
|
5210
|
-
Defined in: [utils/string.utils.ts:870](https://github.com/hichchidev/hichchi/blob/
|
|
5210
|
+
Defined in: [utils/string.utils.ts:870](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L870)
|
|
5211
5211
|
|
|
5212
5212
|
Convert a string to camel case.
|
|
5213
5213
|
|
|
@@ -5262,7 +5262,7 @@ toCamelCase("hello world"); // "helloWorld"
|
|
|
5262
5262
|
function toFirstCase(str?): string;
|
|
5263
5263
|
```
|
|
5264
5264
|
|
|
5265
|
-
Defined in: [utils/string.utils.ts:612](https://github.com/hichchidev/hichchi/blob/
|
|
5265
|
+
Defined in: [utils/string.utils.ts:612](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L612)
|
|
5266
5266
|
|
|
5267
5267
|
Convert a string to first case (Capitalize first letter of the string).
|
|
5268
5268
|
|
|
@@ -5317,7 +5317,7 @@ toFirstCase("hello world"); // "Hello world"
|
|
|
5317
5317
|
function toFirstCaseBreak(str?, join?): string;
|
|
5318
5318
|
```
|
|
5319
5319
|
|
|
5320
|
-
Defined in: [utils/string.utils.ts:832](https://github.com/hichchidev/hichchi/blob/
|
|
5320
|
+
Defined in: [utils/string.utils.ts:832](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L832)
|
|
5321
5321
|
|
|
5322
5322
|
Converts a string to Sentence case (first word capitalized, rest lowercase) with customizable word separators.
|
|
5323
5323
|
|
|
@@ -5411,7 +5411,7 @@ toFirstCaseBreak("GET_USER_DATA", "/"); // "Get/user/data"
|
|
|
5411
5411
|
function toKebabCase(str?, caps?): string;
|
|
5412
5412
|
```
|
|
5413
5413
|
|
|
5414
|
-
Defined in: [utils/string.utils.ts:969](https://github.com/hichchidev/hichchi/blob/
|
|
5414
|
+
Defined in: [utils/string.utils.ts:969](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L969)
|
|
5415
5415
|
|
|
5416
5416
|
Convert a string to kebab case.
|
|
5417
5417
|
|
|
@@ -5487,7 +5487,7 @@ toKebabCase("hello world", true); // "HELLO-WORLD"
|
|
|
5487
5487
|
function toLowerCase(str?): string;
|
|
5488
5488
|
```
|
|
5489
5489
|
|
|
5490
|
-
Defined in: [utils/string.utils.ts:163](https://github.com/hichchidev/hichchi/blob/
|
|
5490
|
+
Defined in: [utils/string.utils.ts:163](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L163)
|
|
5491
5491
|
|
|
5492
5492
|
Converts a string to lowercase with safe handling of undefined or null values.
|
|
5493
5493
|
|
|
@@ -5602,7 +5602,7 @@ function validateEmail(email?: string): boolean {
|
|
|
5602
5602
|
function toLowerCaseBreak(str?, join?): string;
|
|
5603
5603
|
```
|
|
5604
5604
|
|
|
5605
|
-
Defined in: [utils/string.utils.ts:262](https://github.com/hichchidev/hichchi/blob/
|
|
5605
|
+
Defined in: [utils/string.utils.ts:262](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L262)
|
|
5606
5606
|
|
|
5607
5607
|
Converts a string to lowercase and breaks it into words, joining them with a specified separator.
|
|
5608
5608
|
|
|
@@ -5753,7 +5753,7 @@ const result3 = toLowerCaseBreak("singleword");
|
|
|
5753
5753
|
function toNumber(str): number | undefined;
|
|
5754
5754
|
```
|
|
5755
5755
|
|
|
5756
|
-
Defined in: [utils/string.utils.ts:987](https://github.com/hichchidev/hichchi/blob/
|
|
5756
|
+
Defined in: [utils/string.utils.ts:987](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L987)
|
|
5757
5757
|
|
|
5758
5758
|
Converts a string to a number.
|
|
5759
5759
|
|
|
@@ -5808,7 +5808,7 @@ toNumber("123"); // 123
|
|
|
5808
5808
|
function toPascalCase(str?): string;
|
|
5809
5809
|
```
|
|
5810
5810
|
|
|
5811
|
-
Defined in: [utils/string.utils.ts:889](https://github.com/hichchidev/hichchi/blob/
|
|
5811
|
+
Defined in: [utils/string.utils.ts:889](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L889)
|
|
5812
5812
|
|
|
5813
5813
|
Convert a string to pascal case.
|
|
5814
5814
|
|
|
@@ -5863,7 +5863,7 @@ toPascalCase("hello world"); // "HelloWorld"
|
|
|
5863
5863
|
function toProperTitleCase(str): string;
|
|
5864
5864
|
```
|
|
5865
5865
|
|
|
5866
|
-
Defined in: [utils/string.utils.ts:1159](https://github.com/hichchidev/hichchi/blob/
|
|
5866
|
+
Defined in: [utils/string.utils.ts:1159](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1159)
|
|
5867
5867
|
|
|
5868
5868
|
Capitalizes each word in a string according to title case rules.
|
|
5869
5869
|
|
|
@@ -5929,7 +5929,7 @@ toProperTitleCase("a tale of two cities");
|
|
|
5929
5929
|
function toSentenceCase(str?): string;
|
|
5930
5930
|
```
|
|
5931
5931
|
|
|
5932
|
-
Defined in: [utils/string.utils.ts:908](https://github.com/hichchidev/hichchi/blob/
|
|
5932
|
+
Defined in: [utils/string.utils.ts:908](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L908)
|
|
5933
5933
|
|
|
5934
5934
|
Convert a string to sentence case. (Capitalize first letter of every sentence).
|
|
5935
5935
|
|
|
@@ -5984,7 +5984,7 @@ toSentenceCase("hello world. how are you?"); // "Hello world. How are you?"
|
|
|
5984
5984
|
function toSnakeCase(str?, caps?): string;
|
|
5985
5985
|
```
|
|
5986
5986
|
|
|
5987
|
-
Defined in: [utils/string.utils.ts:945](https://github.com/hichchidev/hichchi/blob/
|
|
5987
|
+
Defined in: [utils/string.utils.ts:945](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L945)
|
|
5988
5988
|
|
|
5989
5989
|
Converts a string to snake_case format.
|
|
5990
5990
|
|
|
@@ -6075,7 +6075,7 @@ then joins them with underscores, applying the requested case transformation.
|
|
|
6075
6075
|
function toTitleCase(str?): string;
|
|
6076
6076
|
```
|
|
6077
6077
|
|
|
6078
|
-
Defined in: [utils/string.utils.ts:851](https://github.com/hichchidev/hichchi/blob/
|
|
6078
|
+
Defined in: [utils/string.utils.ts:851](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L851)
|
|
6079
6079
|
|
|
6080
6080
|
Convert a string to title case (Capitalize first letter of each word).
|
|
6081
6081
|
|
|
@@ -6130,7 +6130,7 @@ toTitleCase("hello world"); // "Hello World"
|
|
|
6130
6130
|
function toUpperCase(str?): string;
|
|
6131
6131
|
```
|
|
6132
6132
|
|
|
6133
|
-
Defined in: [utils/string.utils.ts:355](https://github.com/hichchidev/hichchi/blob/
|
|
6133
|
+
Defined in: [utils/string.utils.ts:355](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L355)
|
|
6134
6134
|
|
|
6135
6135
|
Converts a string to uppercase with safe handling of undefined or null values.
|
|
6136
6136
|
|
|
@@ -6257,7 +6257,7 @@ compareIgnoreCase("Test", "test"); // true
|
|
|
6257
6257
|
function toUpperCaseBreak(str?, join?): string;
|
|
6258
6258
|
```
|
|
6259
6259
|
|
|
6260
|
-
Defined in: [utils/string.utils.ts:791](https://github.com/hichchidev/hichchi/blob/
|
|
6260
|
+
Defined in: [utils/string.utils.ts:791](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L791)
|
|
6261
6261
|
|
|
6262
6262
|
Convert a string to upper cases and break into words with optional join or space.
|
|
6263
6263
|
|
|
@@ -6332,7 +6332,7 @@ toUpperCaseBreak("HelloWorld", "! "); // "HELLO! WORLD"
|
|
|
6332
6332
|
function toVariableName(str, pascalCase?): string;
|
|
6333
6333
|
````
|
|
6334
6334
|
|
|
6335
|
-
Defined in: [utils/string.utils.ts:634](https://github.com/hichchidev/hichchi/blob/
|
|
6335
|
+
Defined in: [utils/string.utils.ts:634](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L634)
|
|
6336
6336
|
|
|
6337
6337
|
Converts a string to a camelCase or PascalCase variable name.
|
|
6338
6338
|
|
|
@@ -6418,7 +6418,7 @@ toVariableName("user_id", true); // "UserId"
|
|
|
6418
6418
|
function truncate(str, length, ellipsis?): string;
|
|
6419
6419
|
```
|
|
6420
6420
|
|
|
6421
|
-
Defined in: [utils/string.utils.ts:1089](https://github.com/hichchidev/hichchi/blob/
|
|
6421
|
+
Defined in: [utils/string.utils.ts:1089](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L1089)
|
|
6422
6422
|
|
|
6423
6423
|
Truncates a string to a specified length and adds an ellipsis if needed.
|
|
6424
6424
|
|
|
@@ -6525,7 +6525,7 @@ truncate("Custom ellipsis", 6, " [more]"); // "Custom [more]"
|
|
|
6525
6525
|
function wordWrap(str, lineLength?, breakChar?): string;
|
|
6526
6526
|
```
|
|
6527
6527
|
|
|
6528
|
-
Defined in: [utils/string.utils.ts:672](https://github.com/hichchidev/hichchi/blob/
|
|
6528
|
+
Defined in: [utils/string.utils.ts:672](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/string.utils.ts#L672)
|
|
6529
6529
|
|
|
6530
6530
|
Wraps words in a string to ensure each line is no longer than a specified length.
|
|
6531
6531
|
|
|
@@ -6633,7 +6633,7 @@ wordWrap(text, 30, "<br>");
|
|
|
6633
6633
|
|
|
6634
6634
|
### DottedPathValueObject
|
|
6635
6635
|
|
|
6636
|
-
Defined in: [interfaces/path-value-set.interface.ts:77](https://github.com/hichchidev/hichchi/blob/
|
|
6636
|
+
Defined in: [interfaces/path-value-set.interface.ts:77](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/path-value-set.interface.ts#L77)
|
|
6637
6637
|
|
|
6638
6638
|
Represents a flattened object where keys are dot-notation paths and values are primitive types.
|
|
6639
6639
|
|
|
@@ -6727,7 +6727,7 @@ userPathValues["profile.address.city"] = "Boston";
|
|
|
6727
6727
|
|
|
6728
6728
|
### InfiniteObject
|
|
6729
6729
|
|
|
6730
|
-
Defined in: [interfaces/infinite-object.interface.ts:43](https://github.com/hichchidev/hichchi/blob/
|
|
6730
|
+
Defined in: [interfaces/infinite-object.interface.ts:43](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/infinite-object.interface.ts#L43)
|
|
6731
6731
|
|
|
6732
6732
|
Represents an object with infinite nesting capability (recursive object type).
|
|
6733
6733
|
|
|
@@ -6785,7 +6785,7 @@ const nestedObj: InfiniteObject = {
|
|
|
6785
6785
|
|
|
6786
6786
|
### InflectionRule
|
|
6787
6787
|
|
|
6788
|
-
Defined in: [interfaces/inflection-rule.interfaces.ts:30](https://github.com/hichchidev/hichchi/blob/
|
|
6788
|
+
Defined in: [interfaces/inflection-rule.interfaces.ts:30](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L30)
|
|
6789
6789
|
|
|
6790
6790
|
Rule type for word inflection transformation
|
|
6791
6791
|
|
|
@@ -6849,7 +6849,7 @@ Regular expression pattern to match words this rule applies to
|
|
|
6849
6849
|
</td>
|
|
6850
6850
|
<td>
|
|
6851
6851
|
|
|
6852
|
-
[interfaces/inflection-rule.interfaces.ts:34](https://github.com/hichchidev/hichchi/blob/
|
|
6852
|
+
[interfaces/inflection-rule.interfaces.ts:34](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L34)
|
|
6853
6853
|
|
|
6854
6854
|
</td>
|
|
6855
6855
|
</tr>
|
|
@@ -6871,7 +6871,7 @@ Replacement string with capture group references or function to transform the ma
|
|
|
6871
6871
|
</td>
|
|
6872
6872
|
<td>
|
|
6873
6873
|
|
|
6874
|
-
[interfaces/inflection-rule.interfaces.ts:39](https://github.com/hichchidev/hichchi/blob/
|
|
6874
|
+
[interfaces/inflection-rule.interfaces.ts:39](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L39)
|
|
6875
6875
|
|
|
6876
6876
|
</td>
|
|
6877
6877
|
</tr>
|
|
@@ -6882,7 +6882,7 @@ Replacement string with capture group references or function to transform the ma
|
|
|
6882
6882
|
|
|
6883
6883
|
### InflectionRuleCategories
|
|
6884
6884
|
|
|
6885
|
-
Defined in: [interfaces/inflection-rule.interfaces.ts:125](https://github.com/hichchidev/hichchi/blob/
|
|
6885
|
+
Defined in: [interfaces/inflection-rule.interfaces.ts:125](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L125)
|
|
6886
6886
|
|
|
6887
6887
|
Categories of English inflection rules
|
|
6888
6888
|
|
|
@@ -6959,7 +6959,7 @@ Default rules for standard transformations
|
|
|
6959
6959
|
</td>
|
|
6960
6960
|
<td>
|
|
6961
6961
|
|
|
6962
|
-
[interfaces/inflection-rule.interfaces.ts:149](https://github.com/hichchidev/hichchi/blob/
|
|
6962
|
+
[interfaces/inflection-rule.interfaces.ts:149](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L149)
|
|
6963
6963
|
|
|
6964
6964
|
</td>
|
|
6965
6965
|
</tr>
|
|
@@ -6981,7 +6981,7 @@ Words that are the same in singular and plural form
|
|
|
6981
6981
|
</td>
|
|
6982
6982
|
<td>
|
|
6983
6983
|
|
|
6984
|
-
[interfaces/inflection-rule.interfaces.ts:129](https://github.com/hichchidev/hichchi/blob/
|
|
6984
|
+
[interfaces/inflection-rule.interfaces.ts:129](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L129)
|
|
6985
6985
|
|
|
6986
6986
|
</td>
|
|
6987
6987
|
</tr>
|
|
@@ -7003,7 +7003,7 @@ Words with irregular plural forms
|
|
|
7003
7003
|
</td>
|
|
7004
7004
|
<td>
|
|
7005
7005
|
|
|
7006
|
-
[interfaces/inflection-rule.interfaces.ts:134](https://github.com/hichchidev/hichchi/blob/
|
|
7006
|
+
[interfaces/inflection-rule.interfaces.ts:134](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L134)
|
|
7007
7007
|
|
|
7008
7008
|
</td>
|
|
7009
7009
|
</tr>
|
|
@@ -7025,7 +7025,7 @@ Words borrowed from Latin and Greek
|
|
|
7025
7025
|
</td>
|
|
7026
7026
|
<td>
|
|
7027
7027
|
|
|
7028
|
-
[interfaces/inflection-rule.interfaces.ts:139](https://github.com/hichchidev/hichchi/blob/
|
|
7028
|
+
[interfaces/inflection-rule.interfaces.ts:139](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L139)
|
|
7029
7029
|
|
|
7030
7030
|
</td>
|
|
7031
7031
|
</tr>
|
|
@@ -7047,7 +7047,7 @@ Words with specific ending patterns
|
|
|
7047
7047
|
</td>
|
|
7048
7048
|
<td>
|
|
7049
7049
|
|
|
7050
|
-
[interfaces/inflection-rule.interfaces.ts:144](https://github.com/hichchidev/hichchi/blob/
|
|
7050
|
+
[interfaces/inflection-rule.interfaces.ts:144](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L144)
|
|
7051
7051
|
|
|
7052
7052
|
</td>
|
|
7053
7053
|
</tr>
|
|
@@ -7058,7 +7058,7 @@ Words with specific ending patterns
|
|
|
7058
7058
|
|
|
7059
7059
|
### LiteralObject
|
|
7060
7060
|
|
|
7061
|
-
Defined in: [types/literal-object.type.ts:48](https://github.com/hichchidev/hichchi/blob/
|
|
7061
|
+
Defined in: [types/literal-object.type.ts:48](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/literal-object.type.ts#L48)
|
|
7062
7062
|
|
|
7063
7063
|
Generic interface for objects with string keys and values of a specified type.
|
|
7064
7064
|
|
|
@@ -7149,7 +7149,7 @@ The type of values in the object (defaults to `any`)
|
|
|
7149
7149
|
|
|
7150
7150
|
### PluralSingularRulePair
|
|
7151
7151
|
|
|
7152
|
-
Defined in: [interfaces/inflection-rule.interfaces.ts:70](https://github.com/hichchidev/hichchi/blob/
|
|
7152
|
+
Defined in: [interfaces/inflection-rule.interfaces.ts:70](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L70)
|
|
7153
7153
|
|
|
7154
7154
|
Pair of rule sets for bidirectional singular/plural transformations
|
|
7155
7155
|
|
|
@@ -7212,7 +7212,7 @@ Array of rules for converting singular words to plural form
|
|
|
7212
7212
|
</td>
|
|
7213
7213
|
<td>
|
|
7214
7214
|
|
|
7215
|
-
[interfaces/inflection-rule.interfaces.ts:74](https://github.com/hichchidev/hichchi/blob/
|
|
7215
|
+
[interfaces/inflection-rule.interfaces.ts:74](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L74)
|
|
7216
7216
|
|
|
7217
7217
|
</td>
|
|
7218
7218
|
</tr>
|
|
@@ -7234,7 +7234,7 @@ Array of rules for converting plural words to singular form
|
|
|
7234
7234
|
</td>
|
|
7235
7235
|
<td>
|
|
7236
7236
|
|
|
7237
|
-
[interfaces/inflection-rule.interfaces.ts:79](https://github.com/hichchidev/hichchi/blob/
|
|
7237
|
+
[interfaces/inflection-rule.interfaces.ts:79](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/interfaces/inflection-rule.interfaces.ts#L79)
|
|
7238
7238
|
|
|
7239
7239
|
</td>
|
|
7240
7240
|
</tr>
|
|
@@ -7251,7 +7251,7 @@ type DeepPartial<T> =
|
|
|
7251
7251
|
| 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;
|
|
7252
7252
|
```
|
|
7253
7253
|
|
|
7254
|
-
Defined in: [types/deep-partial.type.ts:46](https://github.com/hichchidev/hichchi/blob/
|
|
7254
|
+
Defined in: [types/deep-partial.type.ts:46](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/deep-partial.type.ts#L46)
|
|
7255
7255
|
|
|
7256
7256
|
A utility type that recursively makes all properties of an object optional.
|
|
7257
7257
|
|
|
@@ -7336,7 +7336,7 @@ type IsAlreadyInPath<T, U> = U extends object
|
|
|
7336
7336
|
: false;
|
|
7337
7337
|
```
|
|
7338
7338
|
|
|
7339
|
-
Defined in: [types/is-already-in-path.type.ts:25](https://github.com/hichchidev/hichchi/blob/
|
|
7339
|
+
Defined in: [types/is-already-in-path.type.ts:25](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/is-already-in-path.type.ts#L25)
|
|
7340
7340
|
|
|
7341
7341
|
Type predicate that detects circular references in type paths.
|
|
7342
7342
|
|
|
@@ -7403,7 +7403,7 @@ type RecursivelyProcess<T, Path = never> =
|
|
|
7403
7403
|
type IsEmpty<T> = keyof T extends never ? true : false;
|
|
7404
7404
|
```
|
|
7405
7405
|
|
|
7406
|
-
Defined in: [types/is-empty.type.ts:26](https://github.com/hichchidev/hichchi/blob/
|
|
7406
|
+
Defined in: [types/is-empty.type.ts:26](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/is-empty.type.ts#L26)
|
|
7407
7407
|
|
|
7408
7408
|
Type predicate that determines if a type is an empty object type.
|
|
7409
7409
|
|
|
@@ -7461,7 +7461,7 @@ type ProcessedNonEmpty = ProcessObject<{ name: string }>; // { name: string }
|
|
|
7461
7461
|
type IsPrimitive<T> = T extends Primitive ? true : false;
|
|
7462
7462
|
```
|
|
7463
7463
|
|
|
7464
|
-
Defined in: [types/is-primitive.type.ts:31](https://github.com/hichchidev/hichchi/blob/
|
|
7464
|
+
Defined in: [types/is-primitive.type.ts:31](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/is-primitive.type.ts#L31)
|
|
7465
7465
|
|
|
7466
7466
|
Type predicate that determines if a type is a primitive JavaScript value.
|
|
7467
7467
|
|
|
@@ -7519,7 +7519,7 @@ type SerializedObject = SerializeValue<{ foo: string }>; // string
|
|
|
7519
7519
|
type LooseAutocomplete<T> = T | Omit<string, T>;
|
|
7520
7520
|
```
|
|
7521
7521
|
|
|
7522
|
-
Defined in: [types/loose-autocomplete.type.ts:32](https://github.com/hichchidev/hichchi/blob/
|
|
7522
|
+
Defined in: [types/loose-autocomplete.type.ts:32](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/loose-autocomplete.type.ts#L32)
|
|
7523
7523
|
|
|
7524
7524
|
Represents a type for autocompleting string values.
|
|
7525
7525
|
|
|
@@ -7585,7 +7585,7 @@ Matt Pocock (https://www.totaltypescript.com/tips/create-autocomplete-helper-whi
|
|
|
7585
7585
|
type NonNullPrimitive = string | number | boolean | symbol | bigint;
|
|
7586
7586
|
```
|
|
7587
7587
|
|
|
7588
|
-
Defined in: [types/is-primitive.type.ts:5](https://github.com/hichchidev/hichchi/blob/
|
|
7588
|
+
Defined in: [types/is-primitive.type.ts:5](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/is-primitive.type.ts#L5)
|
|
7589
7589
|
|
|
7590
7590
|
---
|
|
7591
7591
|
|
|
@@ -7595,7 +7595,7 @@ Defined in: [types/is-primitive.type.ts:5](https://github.com/hichchidev/hichchi
|
|
|
7595
7595
|
type PartialWithNull<T> = { [p in keyof T]?: T[p] | null };
|
|
7596
7596
|
```
|
|
7597
7597
|
|
|
7598
|
-
Defined in: [types/partial-with-null.type.ts:25](https://github.com/hichchidev/hichchi/blob/
|
|
7598
|
+
Defined in: [types/partial-with-null.type.ts:25](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/partial-with-null.type.ts#L25)
|
|
7599
7599
|
|
|
7600
7600
|
Makes all properties of type T optional and allows them to be null.
|
|
7601
7601
|
|
|
@@ -7652,7 +7652,7 @@ const partialUser: PartialWithNull<User> = {
|
|
|
7652
7652
|
type Prettify<T> = { [K in keyof T]: T[K] } & object;
|
|
7653
7653
|
```
|
|
7654
7654
|
|
|
7655
|
-
Defined in: [types/prettify.type.ts:22](https://github.com/hichchidev/hichchi/blob/
|
|
7655
|
+
Defined in: [types/prettify.type.ts:22](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/prettify.type.ts#L22)
|
|
7656
7656
|
|
|
7657
7657
|
Utility type for creating a clean object type from a complex type.
|
|
7658
7658
|
|
|
@@ -7707,7 +7707,7 @@ type SimpleType = Prettify<ComplexType>;
|
|
|
7707
7707
|
type Primitive = string | number | boolean | symbol | bigint | null | undefined;
|
|
7708
7708
|
```
|
|
7709
7709
|
|
|
7710
|
-
Defined in: [types/is-primitive.type.ts:3](https://github.com/hichchidev/hichchi/blob/
|
|
7710
|
+
Defined in: [types/is-primitive.type.ts:3](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/is-primitive.type.ts#L3)
|
|
7711
7711
|
|
|
7712
7712
|
---
|
|
7713
7713
|
|
|
@@ -7719,7 +7719,7 @@ type SimpleDeepPartial<T> = {
|
|
|
7719
7719
|
};
|
|
7720
7720
|
```
|
|
7721
7721
|
|
|
7722
|
-
Defined in: [types/deep-partial.type.ts:63](https://github.com/hichchidev/hichchi/blob/
|
|
7722
|
+
Defined in: [types/deep-partial.type.ts:63](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/deep-partial.type.ts#L63)
|
|
7723
7723
|
|
|
7724
7724
|
Lightweight recursive partial type for plain object filtering/comparison use-cases.
|
|
7725
7725
|
|
|
@@ -7750,7 +7750,7 @@ Lightweight recursive partial type for plain object filtering/comparison use-cas
|
|
|
7750
7750
|
type Type<T> = (...args) => T;
|
|
7751
7751
|
```
|
|
7752
7752
|
|
|
7753
|
-
Defined in: [types/type.type.ts:21](https://github.com/hichchidev/hichchi/blob/
|
|
7753
|
+
Defined in: [types/type.type.ts:21](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/types/type.type.ts#L21)
|
|
7754
7754
|
|
|
7755
7755
|
Generic constructor type for creating class instances.
|
|
7756
7756
|
|
|
@@ -7838,7 +7838,7 @@ const instance = createInstance(MyService);
|
|
|
7838
7838
|
const CHARACTERS_TO_REMOVE: 2 = 2;
|
|
7839
7839
|
```
|
|
7840
7840
|
|
|
7841
|
-
Defined in: [constants/constants.ts:93](https://github.com/hichchidev/hichchi/blob/
|
|
7841
|
+
Defined in: [constants/constants.ts:93](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/constants/constants.ts#L93)
|
|
7842
7842
|
|
|
7843
7843
|
Number of characters to remove in string truncation operations
|
|
7844
7844
|
|
|
@@ -7873,7 +7873,7 @@ if (result.length > 0) {
|
|
|
7873
7873
|
const CONTEXT_MULTIPLIER: 2 = 2;
|
|
7874
7874
|
```
|
|
7875
7875
|
|
|
7876
|
-
Defined in: [constants/constants.ts:231](https://github.com/hichchidev/hichchi/blob/
|
|
7876
|
+
Defined in: [constants/constants.ts:231](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/constants/constants.ts#L231)
|
|
7877
7877
|
|
|
7878
7878
|
Multiplier for adjusting context length in excerpts
|
|
7879
7879
|
|
|
@@ -7913,7 +7913,7 @@ function getFirstPart(text: string): string {
|
|
|
7913
7913
|
const DEFAULT_BREAK_CHAR: "\n" = "\n";
|
|
7914
7914
|
```
|
|
7915
7915
|
|
|
7916
|
-
Defined in: [constants/constants.ts:147](https://github.com/hichchidev/hichchi/blob/
|
|
7916
|
+
Defined in: [constants/constants.ts:147](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/constants/constants.ts#L147)
|
|
7917
7917
|
|
|
7918
7918
|
Default line break character for word wrapping
|
|
7919
7919
|
|
|
@@ -7943,7 +7943,7 @@ const wrappedText =
|
|
|
7943
7943
|
const DEFAULT_CONTEXT_LENGTH: 40 = 40;
|
|
7944
7944
|
```
|
|
7945
7945
|
|
|
7946
|
-
Defined in: [constants/constants.ts:177](https://github.com/hichchidev/hichchi/blob/
|
|
7946
|
+
Defined in: [constants/constants.ts:177](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/constants/constants.ts#L177)
|
|
7947
7947
|
|
|
7948
7948
|
Default context length for text excerpts
|
|
7949
7949
|
|
|
@@ -7987,7 +7987,7 @@ function generateExcerpt(text: string, searchTerm: string): string {
|
|
|
7987
7987
|
const DEFAULT_ELLIPSIS: "..." = "...";
|
|
7988
7988
|
```
|
|
7989
7989
|
|
|
7990
|
-
Defined in: [constants/constants.ts:201](https://github.com/hichchidev/hichchi/blob/
|
|
7990
|
+
Defined in: [constants/constants.ts:201](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/constants/constants.ts#L201)
|
|
7991
7991
|
|
|
7992
7992
|
Default ellipsis string for indicating truncated text
|
|
7993
7993
|
|
|
@@ -8023,7 +8023,7 @@ const truncated = truncate(longText, 20);
|
|
|
8023
8023
|
const DEFAULT_LINE_LENGTH: 80 = 80;
|
|
8024
8024
|
```
|
|
8025
8025
|
|
|
8026
|
-
Defined in: [constants/constants.ts:129](https://github.com/hichchidev/hichchi/blob/
|
|
8026
|
+
Defined in: [constants/constants.ts:129](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/constants/constants.ts#L129)
|
|
8027
8027
|
|
|
8028
8028
|
Default maximum line length for word wrapping
|
|
8029
8029
|
|
|
@@ -8073,7 +8073,7 @@ function wrapText(
|
|
|
8073
8073
|
const EnglishInflectionRules: InflectionRuleCategories;
|
|
8074
8074
|
```
|
|
8075
8075
|
|
|
8076
|
-
Defined in: [constants/english-inflection-rules.ts:55](https://github.com/hichchidev/hichchi/blob/
|
|
8076
|
+
Defined in: [constants/english-inflection-rules.ts:55](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/constants/english-inflection-rules.ts#L55)
|
|
8077
8077
|
|
|
8078
8078
|
Comprehensive rules for English word inflection (singular/plural transformations)
|
|
8079
8079
|
|
|
@@ -8137,7 +8137,7 @@ function plural(word: string): string {
|
|
|
8137
8137
|
const HEX_PADDING_CHAR: "0" = "0";
|
|
8138
8138
|
```
|
|
8139
8139
|
|
|
8140
|
-
Defined in: [constants/constants.ts:66](https://github.com/hichchidev/hichchi/blob/
|
|
8140
|
+
Defined in: [constants/constants.ts:66](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/constants/constants.ts#L66)
|
|
8141
8141
|
|
|
8142
8142
|
Character used for padding hexadecimal strings
|
|
8143
8143
|
|
|
@@ -8170,7 +8170,7 @@ const paddedHex = hexValue.padStart(HEX_PADDING_LENGTH, HEX_PADDING_CHAR);
|
|
|
8170
8170
|
const HEX_PADDING_LENGTH: 2 = 2;
|
|
8171
8171
|
```
|
|
8172
8172
|
|
|
8173
|
-
Defined in: [constants/constants.ts:43](https://github.com/hichchidev/hichchi/blob/
|
|
8173
|
+
Defined in: [constants/constants.ts:43](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/constants/constants.ts#L43)
|
|
8174
8174
|
|
|
8175
8175
|
Minimum length for padded hexadecimal strings
|
|
8176
8176
|
|
|
@@ -8205,7 +8205,7 @@ const hexByte = byteValue
|
|
|
8205
8205
|
const HEX_RADIX: 16 = 16;
|
|
8206
8206
|
```
|
|
8207
8207
|
|
|
8208
|
-
Defined in: [constants/constants.ts:20](https://github.com/hichchidev/hichchi/blob/
|
|
8208
|
+
Defined in: [constants/constants.ts:20](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/constants/constants.ts#L20)
|
|
8209
8209
|
|
|
8210
8210
|
Base for hexadecimal number conversion
|
|
8211
8211
|
|
|
@@ -8236,7 +8236,7 @@ const number = parseInt(hexString, HEX_RADIX);
|
|
|
8236
8236
|
const mimeTypes: Map<string, string>;
|
|
8237
8237
|
```
|
|
8238
8238
|
|
|
8239
|
-
Defined in: [utils/file.utils.ts:38](https://github.com/hichchidev/hichchi/blob/
|
|
8239
|
+
Defined in: [utils/file.utils.ts:38](https://github.com/hichchidev/hichchi/blob/7cc8f718fda8fd802c5c3750a7189d04a95d48d3/libs/utils/src/utils/file.utils.ts#L38)
|
|
8240
8240
|
|
|
8241
8241
|
Comprehensive mapping of file extensions to their corresponding MIME types.
|
|
8242
8242
|
|
package/package.json
CHANGED