@postxl/utils 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/index.browser.d.ts +2 -0
  2. package/dist/index.browser.js +3 -0
  3. package/dist/index.d.ts +22 -25
  4. package/dist/index.js +36 -41
  5. package/dist/index.js.map +1 -1
  6. package/dist/zod-excel.decoders-BJliEI1Y.js +1426 -0
  7. package/dist/zod-excel.decoders-BJliEI1Y.js.map +1 -0
  8. package/dist/zod-excel.decoders-CGmBv5CD.d.ts +773 -0
  9. package/package.json +24 -15
  10. package/dist/DefaultMap.d.ts +0 -12
  11. package/dist/DefaultMap.d.ts.map +0 -1
  12. package/dist/DefaultMap.js +0 -26
  13. package/dist/DefaultMap.js.map +0 -1
  14. package/dist/NestedMap.d.ts +0 -17
  15. package/dist/NestedMap.d.ts.map +0 -1
  16. package/dist/NestedMap.js +0 -72
  17. package/dist/NestedMap.js.map +0 -1
  18. package/dist/TypedMapping.d.ts +0 -27
  19. package/dist/TypedMapping.d.ts.map +0 -1
  20. package/dist/TypedMapping.js +0 -33
  21. package/dist/TypedMapping.js.map +0 -1
  22. package/dist/array.d.ts +0 -7
  23. package/dist/array.d.ts.map +0 -1
  24. package/dist/array.js +0 -21
  25. package/dist/array.js.map +0 -1
  26. package/dist/async.d.ts +0 -4
  27. package/dist/async.d.ts.map +0 -1
  28. package/dist/async.js +0 -41
  29. package/dist/async.js.map +0 -1
  30. package/dist/buffer.d.ts +0 -5
  31. package/dist/buffer.d.ts.map +0 -1
  32. package/dist/buffer.js +0 -16
  33. package/dist/buffer.js.map +0 -1
  34. package/dist/check-port.d.ts +0 -10
  35. package/dist/check-port.d.ts.map +0 -1
  36. package/dist/check-port.js +0 -40
  37. package/dist/check-port.js.map +0 -1
  38. package/dist/datetime.d.ts +0 -23
  39. package/dist/datetime.d.ts.map +0 -1
  40. package/dist/datetime.js +0 -37
  41. package/dist/datetime.js.map +0 -1
  42. package/dist/dictionary.d.ts +0 -9
  43. package/dist/dictionary.d.ts.map +0 -1
  44. package/dist/dictionary.js +0 -45
  45. package/dist/dictionary.js.map +0 -1
  46. package/dist/format.d.ts +0 -2
  47. package/dist/format.d.ts.map +0 -1
  48. package/dist/format.js +0 -7
  49. package/dist/format.js.map +0 -1
  50. package/dist/group-by.d.ts +0 -9
  51. package/dist/group-by.d.ts.map +0 -1
  52. package/dist/group-by.js +0 -66
  53. package/dist/group-by.js.map +0 -1
  54. package/dist/index.d.ts.map +0 -1
  55. package/dist/is-object.d.ts +0 -13
  56. package/dist/is-object.d.ts.map +0 -1
  57. package/dist/is-object.js +0 -25
  58. package/dist/is-object.js.map +0 -1
  59. package/dist/map.d.ts +0 -23
  60. package/dist/map.d.ts.map +0 -1
  61. package/dist/map.js +0 -76
  62. package/dist/map.js.map +0 -1
  63. package/dist/omit.d.ts +0 -5
  64. package/dist/omit.d.ts.map +0 -1
  65. package/dist/omit.js +0 -11
  66. package/dist/omit.js.map +0 -1
  67. package/dist/pagination.d.ts +0 -7
  68. package/dist/pagination.d.ts.map +0 -1
  69. package/dist/pagination.js +0 -14
  70. package/dist/pagination.js.map +0 -1
  71. package/dist/random.d.ts +0 -11
  72. package/dist/random.d.ts.map +0 -1
  73. package/dist/random.js +0 -56
  74. package/dist/random.js.map +0 -1
  75. package/dist/remove-secrets.d.ts +0 -12
  76. package/dist/remove-secrets.d.ts.map +0 -1
  77. package/dist/remove-secrets.js +0 -62
  78. package/dist/remove-secrets.js.map +0 -1
  79. package/dist/remove-undefined.d.ts +0 -10
  80. package/dist/remove-undefined.d.ts.map +0 -1
  81. package/dist/remove-undefined.js +0 -22
  82. package/dist/remove-undefined.js.map +0 -1
  83. package/dist/result.d.ts +0 -35
  84. package/dist/result.d.ts.map +0 -1
  85. package/dist/result.js +0 -120
  86. package/dist/result.js.map +0 -1
  87. package/dist/sort.d.ts +0 -18
  88. package/dist/sort.d.ts.map +0 -1
  89. package/dist/sort.js +0 -64
  90. package/dist/sort.js.map +0 -1
  91. package/dist/string-colors.d.ts +0 -45
  92. package/dist/string-colors.d.ts.map +0 -1
  93. package/dist/string-colors.js +0 -73
  94. package/dist/string-colors.js.map +0 -1
  95. package/dist/string.d.ts +0 -162
  96. package/dist/string.d.ts.map +0 -1
  97. package/dist/string.js +0 -434
  98. package/dist/string.js.map +0 -1
  99. package/dist/types.d.ts +0 -98
  100. package/dist/types.d.ts.map +0 -1
  101. package/dist/types.js +0 -57
  102. package/dist/types.js.map +0 -1
  103. package/dist/uniq.d.ts +0 -2
  104. package/dist/uniq.d.ts.map +0 -1
  105. package/dist/uniq.js +0 -16
  106. package/dist/uniq.js.map +0 -1
  107. package/dist/zod-excel.decoders.d.ts +0 -162
  108. package/dist/zod-excel.decoders.d.ts.map +0 -1
  109. package/dist/zod-excel.decoders.js +0 -361
  110. package/dist/zod-excel.decoders.js.map +0 -1
  111. package/dist/zod.d.ts +0 -30
  112. package/dist/zod.d.ts.map +0 -1
  113. package/dist/zod.js +0 -56
  114. package/dist/zod.js.map +0 -1
package/dist/result.js DELETED
@@ -1,120 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _Result_tag, _Result_value, _Result_error;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.err = exports.ok = exports.Result = void 0;
16
- class Result {
17
- static ok(value) {
18
- return new Result('ok', value);
19
- }
20
- static err(value) {
21
- return new Result('err', value);
22
- }
23
- static fromThrowable(f, handleError) {
24
- try {
25
- return Result.ok(f());
26
- }
27
- catch (error) {
28
- return Result.err(handleError(error));
29
- }
30
- }
31
- static fromObject(result) {
32
- if (result.tag === 'ok') {
33
- return Result.ok(result.value);
34
- }
35
- else {
36
- return Result.err(result.err);
37
- }
38
- }
39
- static async fromPromise(promise, handleError) {
40
- try {
41
- return Result.ok(await promise());
42
- }
43
- catch (error) {
44
- return Result.err(handleError(error));
45
- }
46
- }
47
- constructor(tag, value) {
48
- // We track the tag separately from the value and error to allow for us to use
49
- // `null` as a valid value.
50
- _Result_tag.set(this, void 0);
51
- _Result_value.set(this, void 0);
52
- _Result_error.set(this, void 0);
53
- __classPrivateFieldSet(this, _Result_tag, tag, "f");
54
- __classPrivateFieldSet(this, _Result_value, tag === 'ok' ? value : null, "f");
55
- __classPrivateFieldSet(this, _Result_error, tag === 'err' ? value : null, "f");
56
- }
57
- isOk() {
58
- return __classPrivateFieldGet(this, _Result_tag, "f") === 'ok';
59
- }
60
- isErr() {
61
- return __classPrivateFieldGet(this, _Result_tag, "f") === 'err';
62
- }
63
- map(f) {
64
- if (__classPrivateFieldGet(this, _Result_tag, "f") === 'ok') {
65
- return Result.ok(f(__classPrivateFieldGet(this, _Result_value, "f")));
66
- }
67
- else {
68
- return this;
69
- }
70
- }
71
- mapErr(f) {
72
- if (__classPrivateFieldGet(this, _Result_tag, "f") === 'err') {
73
- return Result.err(f(__classPrivateFieldGet(this, _Result_error, "f")));
74
- }
75
- else {
76
- return this;
77
- }
78
- }
79
- andThen(f) {
80
- if (__classPrivateFieldGet(this, _Result_tag, "f") === 'ok') {
81
- return f(__classPrivateFieldGet(this, _Result_value, "f"));
82
- }
83
- else {
84
- return this;
85
- }
86
- }
87
- withDefault(fallback) {
88
- return __classPrivateFieldGet(this, _Result_tag, "f") === 'ok' ? __classPrivateFieldGet(this, _Result_value, "f") : fallback;
89
- }
90
- unwrap() {
91
- if (__classPrivateFieldGet(this, _Result_tag, "f") === 'ok') {
92
- return __classPrivateFieldGet(this, _Result_value, "f");
93
- }
94
- else {
95
- throw new Error(typeof __classPrivateFieldGet(this, _Result_error, "f") === 'string' ? __classPrivateFieldGet(this, _Result_error, "f") : JSON.stringify(__classPrivateFieldGet(this, _Result_error, "f")));
96
- }
97
- }
98
- unwrapErr() {
99
- if (__classPrivateFieldGet(this, _Result_tag, "f") === 'err') {
100
- return __classPrivateFieldGet(this, _Result_error, "f");
101
- }
102
- else {
103
- throw new Error('tried to unwrap an ok result');
104
- }
105
- }
106
- toJSON() {
107
- if (__classPrivateFieldGet(this, _Result_tag, "f") === 'ok') {
108
- return { tag: 'ok', value: __classPrivateFieldGet(this, _Result_value, "f") };
109
- }
110
- else {
111
- return { tag: 'err', err: __classPrivateFieldGet(this, _Result_error, "f") };
112
- }
113
- }
114
- }
115
- exports.Result = Result;
116
- _Result_tag = new WeakMap(), _Result_value = new WeakMap(), _Result_error = new WeakMap();
117
- exports.ok = Result.ok;
118
- exports.err = Result.err;
119
- exports.default = Result;
120
- //# sourceMappingURL=result.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"result.js","sourceRoot":"","sources":["../src/result.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,MAAa,MAAM;IACjB,MAAM,CAAC,EAAE,CAAO,KAAQ;QACtB,OAAO,IAAI,MAAM,CAAO,IAAI,EAAE,KAAK,CAAC,CAAA;IACtC,CAAC;IAED,MAAM,CAAC,GAAG,CAAO,KAAQ;QACvB,OAAO,IAAI,MAAM,CAAO,KAAK,EAAE,KAAK,CAAC,CAAA;IACvC,CAAC;IAED,MAAM,CAAC,aAAa,CAAO,CAAU,EAAE,WAAgC;QACrE,IAAI,CAAC;YACH,OAAO,MAAM,CAAC,EAAE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AAK,EAAE,CAAC;YACxB,OAAO,uBAAA,IAAI,qBAAQ,CAAA;QACrB,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAA;QACjD,CAAC;IACH,CAAC;IAED,MAAM;QACJ,IAAI,uBAAA,IAAI,mBAAK,KAAK,IAAI,EAAE,CAAC;YACvB,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,uBAAA,IAAI,qBAAQ,EAAE,CAAA;QAC3C,CAAC;aAAM,CAAC;YACN,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,uBAAA,IAAI,qBAAQ,EAAE,CAAA;QAC1C,CAAC;IACH,CAAC;CACF;AA3GD,wBA2GC;;AAEY,QAAA,EAAE,GAAG,MAAM,CAAC,EAAE,CAAA;AACd,QAAA,GAAG,GAAG,MAAM,CAAC,GAAG,CAAA;AAQ7B,kBAAe,MAAM,CAAA"}
package/dist/sort.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export type CompareFn<T> = (a: T, b: T) => number;
2
- export type Direction = 'asc' | 'desc';
3
- export declare const sort: <Item>(items: Item[], dir?: Direction, compareFn?: CompareFn<Item>) => Item[];
4
- /**
5
- * Compare fields of an object.
6
- */
7
- export declare const compareFields: <T>(key: keyof T) => CompareFn<T>;
8
- export type Getter<T> = (data: T) => unknown;
9
- export declare const compare: <T>(getter: Getter<T>) => CompareFn<T>;
10
- export declare const keyGetter: <T>(key: keyof T) => Getter<T>;
11
- export declare const compareValues: CompareFn<unknown>;
12
- export declare const compareDates: CompareFn<Date>;
13
- export declare const compareStrings: CompareFn<string>;
14
- export declare const compareNumbers: CompareFn<number>;
15
- export declare const compareBooleans: CompareFn<boolean>;
16
- export declare const booleanCode: (bool: boolean) => number;
17
- export declare const setDirection: <Item>(items: Item[], dir: Direction) => Item[];
18
- //# sourceMappingURL=sort.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sort.d.ts","sourceRoot":"","sources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-1,64 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setDirection = exports.booleanCode = exports.compareBooleans = exports.compareNumbers = exports.compareStrings = exports.compareDates = exports.compareValues = exports.keyGetter = exports.compare = exports.compareFields = exports.sort = void 0;
4
- const sort = (items, dir = 'asc', compareFn = exports.compareValues) => (0, exports.setDirection)(items.toSorted(compareFn), dir);
5
- exports.sort = sort;
6
- /**
7
- * Compare fields of an object.
8
- */
9
- const compareFields = (key) => {
10
- return (a, b) => (0, exports.compareValues)(a[key], b[key]);
11
- };
12
- exports.compareFields = compareFields;
13
- const compare = (getter) => {
14
- return (a, b) => (0, exports.compareValues)(getter(a), getter(b));
15
- };
16
- exports.compare = compare;
17
- const keyGetter = (key) => {
18
- return (data) => data[key];
19
- };
20
- exports.keyGetter = keyGetter;
21
- const compareValues = (a, b) => {
22
- switch (true) {
23
- // In case one item is undefined or null and the other is not, we place the non-null item first.
24
- case (a === undefined || a === null) && b !== undefined && b !== null:
25
- return 1;
26
- case (b === undefined || b === null) && a !== undefined && a !== null:
27
- return -1;
28
- case (a === undefined || a === null) && (b === undefined || b === null):
29
- return 0;
30
- case a instanceof Date && b instanceof Date:
31
- return (0, exports.compareDates)(a, b);
32
- case typeof a === 'string' && typeof b === 'string':
33
- return (0, exports.compareStrings)(a, b);
34
- case typeof a === 'number' && typeof b === 'number':
35
- return (0, exports.compareNumbers)(a, b);
36
- case typeof a === 'boolean' && typeof b === 'boolean':
37
- return (0, exports.compareBooleans)(a, b);
38
- default:
39
- return 0;
40
- }
41
- };
42
- exports.compareValues = compareValues;
43
- const compareDates = (a, b) => (0, exports.compareStrings)(a.toISOString(), b.toISOString());
44
- exports.compareDates = compareDates;
45
- const compareStrings = (a, b) => {
46
- const aLower = a.trim().toLowerCase();
47
- const bLower = b.trim().toLowerCase();
48
- if (aLower === bLower) {
49
- return 0;
50
- }
51
- return aLower > bLower ? 1 : -1;
52
- };
53
- exports.compareStrings = compareStrings;
54
- const compareNumbers = (a, b) => a - b;
55
- exports.compareNumbers = compareNumbers;
56
- const compareBooleans = (a, b) => (0, exports.booleanCode)(a) - (0, exports.booleanCode)(b);
57
- exports.compareBooleans = compareBooleans;
58
- const booleanCode = (bool) => (bool ? 1 : 0);
59
- exports.booleanCode = booleanCode;
60
- const setDirection = (items, dir) => {
61
- return dir === 'desc' ? items.toReversed() : items;
62
- };
63
- exports.setDirection = setDirection;
64
- //# sourceMappingURL=sort.js.map
package/dist/sort.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"sort.js","sourceRoot":"","sources":["../src/sort.ts"],"names":[],"mappings":";;;AAIO,MAAM,IAAI,GAAG,CAAO,KAAa,EAAE,MAAiB,KAAK,EAAE,YAA6B,qBAAa,EAAU,EAAE,CACtH,IAAA,oBAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,CAAA;AADjC,QAAA,IAAI,QAC6B;AAE9C;;GAEG;AACI,MAAM,aAAa,GAAG,CAAI,GAAY,EAAgB,EAAE;IAC7D,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;AAChD,CAAC,CAAA;AAFY,QAAA,aAAa,iBAEzB;AAIM,MAAM,OAAO,GAAG,CAAI,MAAiB,EAAgB,EAAE;IAC5D,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;AACtD,CAAC,CAAA;AAFY,QAAA,OAAO,WAEnB;AAEM,MAAM,SAAS,GAAG,CAAI,GAAY,EAAa,EAAE;IACtD,OAAO,CAAC,IAAO,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC/B,CAAC,CAAA;AAFY,QAAA,SAAS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) => string;
5
- /**
6
- * Colors a string in red color (using ANSI escape codes).
7
- */
8
- export declare function red(input: string): string;
9
- /**
10
- * Colors a string in green color (using ANSI escape codes).
11
- */
12
- export declare function green(input: string): string;
13
- /**
14
- * Colors a string in yellow color (using ANSI escape codes).
15
- */
16
- export declare function yellow(input: string): string;
17
- /**
18
- * Colors a string in blue color (using ANSI escape codes).
19
- */
20
- export declare function blue(input: string): string;
21
- /**
22
- * Colors a string in cyan color (using ANSI escape codes).
23
- */
24
- export declare function cyan(input: string): string;
25
- /**
26
- * Colors a string in gray color (using ANSI escape codes).
27
- */
28
- export declare function gray(input: string): string;
29
- /**
30
- * Colors a string in bold color (using ANSI escape codes).
31
- */
32
- export declare function bold(input: string): string;
33
- /**
34
- * Colors a string in underline color (using ANSI escape codes).
35
- */
36
- export declare function underline(input: string): string;
37
- /**
38
- * Colors a string in italic color (using ANSI escape codes).
39
- */
40
- export declare function italic(input: string): string;
41
- /**
42
- * Inverts the color of a string (using ANSI escape codes).
43
- */
44
- export declare function inverse(input: string): string;
45
- //# sourceMappingURL=string-colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"string-colors.d.ts","sourceRoot":"","sources":["../src/string-colors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;AAE/C;;GAEG;AACH,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7C"}
@@ -1,73 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.red = red;
4
- exports.green = green;
5
- exports.yellow = yellow;
6
- exports.blue = blue;
7
- exports.cyan = cyan;
8
- exports.gray = gray;
9
- exports.bold = bold;
10
- exports.underline = underline;
11
- exports.italic = italic;
12
- exports.inverse = inverse;
13
- /**
14
- * Colors a string in red color (using ANSI escape codes).
15
- */
16
- function red(input) {
17
- return `\u001b[31m${input}\u001b[39m`;
18
- }
19
- /**
20
- * Colors a string in green color (using ANSI escape codes).
21
- */
22
- function green(input) {
23
- return `\u001b[32m${input}\u001b[39m`;
24
- }
25
- /**
26
- * Colors a string in yellow color (using ANSI escape codes).
27
- */
28
- function yellow(input) {
29
- return `\u001b[33m${input}\u001b[39m`;
30
- }
31
- /**
32
- * Colors a string in blue color (using ANSI escape codes).
33
- */
34
- function blue(input) {
35
- return `\u001b[34m${input}\u001b[39m`;
36
- }
37
- /**
38
- * Colors a string in cyan color (using ANSI escape codes).
39
- */
40
- function cyan(input) {
41
- return `\u001b[36m${input}\u001b[39m`;
42
- }
43
- /**
44
- * Colors a string in gray color (using ANSI escape codes).
45
- */
46
- function gray(input) {
47
- return `\u001b[90m${input}\u001b[39m`;
48
- }
49
- /**
50
- * Colors a string in bold color (using ANSI escape codes).
51
- */
52
- function bold(input) {
53
- return `\u001b[1m${input}\u001b[22m`;
54
- }
55
- /**
56
- * Colors a string in underline color (using ANSI escape codes).
57
- */
58
- function underline(input) {
59
- return `\u001b[4m${input}\u001b[24m`;
60
- }
61
- /**
62
- * Colors a string in italic color (using ANSI escape codes).
63
- */
64
- function italic(input) {
65
- return `\u001b[3m${input}\u001b[23m`;
66
- }
67
- /**
68
- * Inverts the color of a string (using ANSI escape codes).
69
- */
70
- function inverse(input) {
71
- return `\u001b[7m${input}\u001b[27m`;
72
- }
73
- //# sourceMappingURL=string-colors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"string-colors.js","sourceRoot":"","sources":["../src/string-colors.ts"],"names":[],"mappings":";;AAQA,kBAEC;AAKD,sBAEC;AAKD,wBAEC;AAKD,oBAEC;AAKD,oBAEC;AAKD,oBAEC;AAKD,oBAEC;AAKD,8BAEC;AAKD,wBAEC;AAKD,0BAEC;AApED;;GAEG;AACH,SAAgB,GAAG,CAAC,KAAa;IAC/B,OAAO,aAAa,KAAK,YAAY,CAAA;AACvC,CAAC;AAED;;GAEG;AACH,SAAgB,KAAK,CAAC,KAAa;IACjC,OAAO,aAAa,KAAK,YAAY,CAAA;AACvC,CAAC;AAED;;GAEG;AACH,SAAgB,MAAM,CAAC,KAAa;IAClC,OAAO,aAAa,KAAK,YAAY,CAAA;AACvC,CAAC;AAED;;GAEG;AACH,SAAgB,IAAI,CAAC,KAAa;IAChC,OAAO,aAAa,KAAK,YAAY,CAAA;AACvC,CAAC;AAED;;GAEG;AACH,SAAgB,IAAI,CAAC,KAAa;IAChC,OAAO,aAAa,KAAK,YAAY,CAAA;AACvC,CAAC;AAED;;GAEG;AACH,SAAgB,IAAI,CAAC,KAAa;IAChC,OAAO,aAAa,KAAK,YAAY,CAAA;AACvC,CAAC;AAED;;GAEG;AACH,SAAgB,IAAI,CAAC,KAAa;IAChC,OAAO,YAAY,KAAK,YAAY,CAAA;AACtC,CAAC;AAED;;GAEG;AACH,SAAgB,SAAS,CAAC,KAAa;IACrC,OAAO,YAAY,KAAK,YAAY,CAAA;AACtC,CAAC;AAED;;GAEG;AACH,SAAgB,MAAM,CAAC,KAAa;IAClC,OAAO,YAAY,KAAK,YAAY,CAAA;AACtC,CAAC;AAED;;GAEG;AACH,SAAgB,OAAO,CAAC,KAAa;IACnC,OAAO,YAAY,KAAK,YAAY,CAAA;AACtC,CAAC"}
package/dist/string.d.ts DELETED
@@ -1,162 +0,0 @@
1
- export declare function upperFirst(s: string): string;
2
- export declare function lowerFirst(s: string): string;
3
- /**
4
- * Returns a pluralized version of the given string based on the count.
5
- */
6
- export declare function pluralize(s: string, count?: number): string;
7
- /**
8
- * Returns true if the given string is already pluralized.
9
- */
10
- export declare function isPlural(s: string): boolean;
11
- /**
12
- * Type modifier that converts all keys of an object to capitalized versions.
13
- */
14
- export type CapitalizedKeys<T extends Record<string, unknown>> = {
15
- [K in keyof T as CapitalizeFirstLetter<string & K>]: T[K];
16
- };
17
- /**
18
- * Type modifier that converts the first letter of a string to a capital letter.
19
- */
20
- type CapitalizeFirstLetter<S extends string> = `${Capitalize<Extract<S, string>>}`;
21
- /**
22
- * Converts all keys of an object to capitalized versions in a type-safe way.
23
- */
24
- export declare function capitalizeKeys<T extends Record<string, unknown>>(obj: T): CapitalizedKeys<T>;
25
- /**
26
- * Type modifier that converts all keys of an object to uncapitalized versions.
27
- */
28
- export type UncapitalizedKeys<T extends Record<string, unknown>> = {
29
- [K in keyof T as UncapitalizeFirstLetter<string & K>]: T[K];
30
- };
31
- /**
32
- * Type modifier that converts the first letter of a string to an uncapitalized letter.
33
- */
34
- type UncapitalizeFirstLetter<S extends string> = `${Uncapitalize<Extract<S, string>>}`;
35
- /**
36
- * Converts all keys of an object to uncapitalized versions in a type-safe way.
37
- */
38
- export declare function uncapitalizeKeys<T extends Record<string, unknown>>(obj: T): UncapitalizedKeys<T>;
39
- /**
40
- * Returns the same string with a lowercase first letter.
41
- */
42
- export declare function uncapitalize(str: string): string;
43
- /**
44
- * Returns the same string with an uppercase first letter.
45
- */
46
- export declare function capitalize(str: string): string;
47
- /**
48
- * Returns the camelCase version of the given string.
49
- *
50
- * Camel case examples:
51
- * `toCamelCase('hello world')` -> 'helloWorld',
52
- * `toCamelCase('hello_world')` -> 'helloWorld',
53
- * `toCamelCase('helloWorld')` -> 'helloWorld'
54
- * `toCamelCase('HelloWorld')` -> 'helloWorld'
55
- * `toCamelCase('hello_world')` -> 'helloWorld'
56
- */
57
- export declare function toCamelCase(str: string): string;
58
- /**
59
- * Validates if a string is in camelCase format
60
- */
61
- export declare function isCamelCase(str: string): boolean;
62
- /**
63
- * Returns the PascalCase version of the given string.
64
- *
65
- * Examples:
66
- * `toPascalCase('hello world')` -> 'HelloWorld'
67
- * `toPascalCase('hello_world')` -> 'HelloWorld'
68
- * `toPascalCase('helloWorld')` -> 'HelloWorld'
69
- * `toPascalCase('Hello-World')` -> 'HelloWorld'
70
- * `toPascalCase('HELLO_WORLD')` -> 'HelloWorld'
71
- */
72
- export declare function toPascalCase(str: string): string;
73
- /**
74
- * Validates if a string is in PascalCase format
75
- */
76
- export declare function isPascalCase(str: string): boolean;
77
- /**
78
- * Returns the snake_case version of the given string.
79
- *
80
- * Examples:
81
- * `toSnakeCase('hello world')` -> 'hello_world'
82
- * `toSnakeCase('helloWorld')` -> 'hello_world'
83
- * `toSnakeCase('HelloWorld')` -> 'hello_world'
84
- * `toSnakeCase('HELLO_WORLD')` -> 'hello_world'
85
- */
86
- export declare function toSnakeCase(str: string): string;
87
- /**
88
- * Validates if a string is in snake_case format
89
- */
90
- export declare function isSnakeCase(str: string): boolean;
91
- /**
92
- * Returns the kebab-case version of the given string.
93
- *
94
- * Examples:
95
- * `toKebabCase('hello world')` -> 'hello-world'
96
- * `toKebabCase('helloWorld')` -> 'hello-world'
97
- * `toKebabCase('HelloWorld')` -> 'hello-world'
98
- * `toKebabCase('HELLO_WORLD')` -> 'hello-world'
99
- */
100
- export declare function toKebabCase(str: string): string;
101
- /**
102
- * Validates if a string is in kebab-case format
103
- */
104
- export declare function isKebabCase(str: string): boolean;
105
- /**
106
- * Converts each line of a string to a commented line
107
- */
108
- export declare function commentLines(lines: string): string;
109
- export declare function toHumanReadable(input: string): string;
110
- /**
111
- * Sanitizes a string to be a valid Excel ListObject (table) column name.
112
- * - Removes illegal characters: [ ] : ? * / \
113
- * - Trims leading/trailing spaces
114
- * - Replaces multiple spaces with a single space
115
- * - If the result is empty, returns a default name
116
- */
117
- export declare function toExcelColumnName(input: string, defaultName?: string): string;
118
- /**
119
- * Sanitizes a string to be a valid Excel ListObject (table) name.
120
- * - Must start with a letter, underscore, or backslash
121
- * - Only letters, numbers, and underscores allowed (no spaces or punctuation)
122
- * - Cannot be a cell reference (e.g., "A1")
123
- * - Max 255 characters
124
- * - If invalid or empty, returns a default name
125
- */
126
- export declare function toExcelTableName(input: string, defaultName?: string): string;
127
- export type Conjugated = {
128
- camelCase: string;
129
- camelCasePlural: string;
130
- capitalized: string;
131
- capitalizedPlural: string;
132
- kebabCase: string;
133
- kebabCasePlural: string;
134
- PascalCase: string;
135
- PascalCasePlural: string;
136
- pluralized: string;
137
- snake_case_plural: string;
138
- snake_case: string;
139
- uncapitalized: string;
140
- uncapitalizedPlural: string;
141
- };
142
- /**
143
- * Provide all relevant conjugation of a name
144
- */
145
- export declare function conjugateNames(name: string): Conjugated;
146
- export declare function slugify(str: string): string;
147
- export declare function isSlug(str: string): boolean;
148
- /**
149
- * Ensures that a string is unique within a list of existing values by appending a sequential number if necessary.
150
- *
151
- * If the base string is not in the list, it is returned as is.
152
- * If it is, the function looks for existing strings in the format "base (n)" where n is a number,
153
- * and returns the next available sequential string.
154
- *
155
- * @param value - The base string to ensure uniqueness for.
156
- * @param existingValues - An array of existing strings to check against.
157
- * @param maxChecks - Maximum number of checks to be performed. An error is thrown if this limit is exceeded. Default is 100
158
- * @returns A unique string based on the base string.
159
- */
160
- export declare const ensureUnique: (value: string, existingValues: string[], maxChecks?: number) => string;
161
- export {};
162
- //# sourceMappingURL=string.d.ts.map
@@ -1 +0,0 @@
1
- {"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