@cobol-ts/string_utils 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js.map +1 -0
- package/dist/src/string.utilties.spec.d.ts +1 -0
- package/dist/src/string.utilties.spec.js +243 -0
- package/dist/src/string.utilties.spec.js.map +1 -0
- package/dist/src/strings.utilities.d.ts +49 -0
- package/dist/src/strings.utilities.js +165 -0
- package/dist/src/strings.utilities.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const strings_utilities_1 = require("./strings.utilities");
|
|
4
|
+
describe("camelCaseToWords", () => {
|
|
5
|
+
it("converts simple camelCase strings to words", () => {
|
|
6
|
+
expect((0, strings_utilities_1.camelCaseToWords)("thisText")).toBe("This Text");
|
|
7
|
+
expect((0, strings_utilities_1.camelCaseToWords)("anotherExample")).toBe("Another Example");
|
|
8
|
+
});
|
|
9
|
+
it("handles multiple uppercase letters correctly", () => {
|
|
10
|
+
expect((0, strings_utilities_1.camelCaseToWords)("HTMLParserTest")).toBe("HTML Parser Test");
|
|
11
|
+
expect((0, strings_utilities_1.camelCaseToWords)("XmlHTTPRequest")).toBe("Xml HTTP Request");
|
|
12
|
+
});
|
|
13
|
+
it("handles single word strings", () => {
|
|
14
|
+
expect((0, strings_utilities_1.camelCaseToWords)("example")).toBe("Example");
|
|
15
|
+
});
|
|
16
|
+
it("handles strings with numbers", () => {
|
|
17
|
+
expect((0, strings_utilities_1.camelCaseToWords)("test123String")).toBe("Test 123 String");
|
|
18
|
+
expect((0, strings_utilities_1.camelCaseToWords)("123startHere")).toBe("123 Start Here");
|
|
19
|
+
expect((0, strings_utilities_1.camelCaseToWords)("this1Is2ATest3")).toBe("This 1 Is 2 A Test 3");
|
|
20
|
+
});
|
|
21
|
+
it("handles strings with special characters", () => {
|
|
22
|
+
expect((0, strings_utilities_1.camelCaseToWords)("test_with_special_@")).toBe("Test_with_special_@");
|
|
23
|
+
expect((0, strings_utilities_1.camelCaseToWords)("another-Test")).toBe("Another-Test");
|
|
24
|
+
});
|
|
25
|
+
it("handles empty strings", () => {
|
|
26
|
+
expect((0, strings_utilities_1.camelCaseToWords)("")).toBe("");
|
|
27
|
+
});
|
|
28
|
+
it("handles strings with existing spaces", () => {
|
|
29
|
+
expect((0, strings_utilities_1.camelCaseToWords)("thisText AlreadyFormatted")).toBe("This Text Already Formatted");
|
|
30
|
+
});
|
|
31
|
+
it("handles strings that are already properly formatted", () => {
|
|
32
|
+
expect((0, strings_utilities_1.camelCaseToWords)("Already Proper")).toBe("Already Proper");
|
|
33
|
+
});
|
|
34
|
+
it("trims leading and trailing spaces", () => {
|
|
35
|
+
expect((0, strings_utilities_1.camelCaseToWords)(" thisText ")).toBe("This Text");
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
describe("capitalizeFirstLetter", () => {
|
|
39
|
+
it("capitalizes the first letter of a string", () => {
|
|
40
|
+
expect((0, strings_utilities_1.capitalizeFirstLetter)("test")).toBe("Test");
|
|
41
|
+
expect((0, strings_utilities_1.capitalizeFirstLetter)("another")).toBe("Another");
|
|
42
|
+
});
|
|
43
|
+
it("handles empty strings", () => {
|
|
44
|
+
expect((0, strings_utilities_1.capitalizeFirstLetter)("")).toBe("");
|
|
45
|
+
});
|
|
46
|
+
it("handles undefined and nulls", () => {
|
|
47
|
+
expect((0, strings_utilities_1.capitalizeFirstLetter)(null)).toBe(null);
|
|
48
|
+
expect((0, strings_utilities_1.capitalizeFirstLetter)(undefined)).toBe(undefined);
|
|
49
|
+
});
|
|
50
|
+
it("handles strings with numbers", () => {
|
|
51
|
+
expect((0, strings_utilities_1.capitalizeFirstLetter)("123test")).toBe("123test");
|
|
52
|
+
});
|
|
53
|
+
it("handles strings with special characters", () => {
|
|
54
|
+
expect((0, strings_utilities_1.capitalizeFirstLetter)("@test")).toBe("@test");
|
|
55
|
+
});
|
|
56
|
+
it("handles strings with existing spaces", () => {
|
|
57
|
+
expect((0, strings_utilities_1.capitalizeFirstLetter)(" test ")).toBe(" test ");
|
|
58
|
+
});
|
|
59
|
+
it("handles strings that are already properly formatted", () => {
|
|
60
|
+
expect((0, strings_utilities_1.capitalizeFirstLetter)("Test")).toBe("Test");
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
describe("camelCase", () => {
|
|
64
|
+
test("converts space-separated words to camelCase", () => {
|
|
65
|
+
expect((0, strings_utilities_1.camelCase)("hello world")).toBe("helloWorld");
|
|
66
|
+
});
|
|
67
|
+
test("handles single-word input", () => {
|
|
68
|
+
expect((0, strings_utilities_1.camelCase)("hello")).toBe("hello");
|
|
69
|
+
});
|
|
70
|
+
test("converts snake_case to camelCase", () => {
|
|
71
|
+
expect((0, strings_utilities_1.camelCase)("some_value_here")).toBe("someValueHere");
|
|
72
|
+
});
|
|
73
|
+
test("converts kebab-case to camelCase", () => {
|
|
74
|
+
expect((0, strings_utilities_1.camelCase)("arrayPathGet-this-done")).toBe("arraypathgetThisDone");
|
|
75
|
+
});
|
|
76
|
+
test("handles mixed separators (spaces, underscores, hyphens)", () => {
|
|
77
|
+
expect((0, strings_utilities_1.camelCase)("one_two-three four")).toBe("oneTwoThreeFour");
|
|
78
|
+
});
|
|
79
|
+
test("ignores leading and trailing spaces", () => {
|
|
80
|
+
expect((0, strings_utilities_1.camelCase)(" leading spaces ")).toBe("leadingSpaces");
|
|
81
|
+
});
|
|
82
|
+
test("handles uppercase input", () => {
|
|
83
|
+
expect((0, strings_utilities_1.camelCase)("MAKE IT WORK")).toBe("makeItWork");
|
|
84
|
+
});
|
|
85
|
+
test("returns empty string for empty input", () => {
|
|
86
|
+
expect((0, strings_utilities_1.camelCase)("")).toBe("");
|
|
87
|
+
});
|
|
88
|
+
test("handles input with special characters", () => {
|
|
89
|
+
expect((0, strings_utilities_1.camelCase)("hello@world!")).toBe("hello@world");
|
|
90
|
+
});
|
|
91
|
+
test("handles numeric and alphanumeric input", () => {
|
|
92
|
+
expect((0, strings_utilities_1.camelCase)("convert 123 to words")).toBe("convert123ToWords");
|
|
93
|
+
expect((0, strings_utilities_1.camelCase)("mix123Words")).toBe("mix123words");
|
|
94
|
+
});
|
|
95
|
+
test("handles repetitive separators", () => {
|
|
96
|
+
expect((0, strings_utilities_1.camelCase)("----repeated---hyphens__and_spaces ")).toBe("repeatedHyphensAndSpaces");
|
|
97
|
+
});
|
|
98
|
+
test("converts dash-only input to empty string", () => {
|
|
99
|
+
expect((0, strings_utilities_1.camelCase)("----")).toBe("");
|
|
100
|
+
});
|
|
101
|
+
test("preserves case for words after first word", () => {
|
|
102
|
+
expect((0, strings_utilities_1.camelCase)("UPPER lowercase MixEd")).toBe("upperLowercaseMixed");
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
describe("ellipsesInMiddle", () => {
|
|
106
|
+
test("returns full string if within maxLength", () => {
|
|
107
|
+
expect((0, strings_utilities_1.ellipsesInMiddle)("short", 10)).toBe("short");
|
|
108
|
+
});
|
|
109
|
+
test("truncates with default ellipses in the middle", () => {
|
|
110
|
+
expect((0, strings_utilities_1.ellipsesInMiddle)("abcdefghijklmno", 11)).toBe("abcd...lmno");
|
|
111
|
+
});
|
|
112
|
+
test("truncates with custom ellipses", () => {
|
|
113
|
+
expect((0, strings_utilities_1.ellipsesInMiddle)("abcdefghijklmno", 11, "[...]")).toBe("abc[...]mno");
|
|
114
|
+
});
|
|
115
|
+
test("returns only ellipsis if maxLength is too small", () => {
|
|
116
|
+
expect((0, strings_utilities_1.ellipsesInMiddle)("abcdefghij", 4)).toBe("...");
|
|
117
|
+
expect((0, strings_utilities_1.ellipsesInMiddle)("abcdefghij", 5, "[...]")).toBe("[...]");
|
|
118
|
+
});
|
|
119
|
+
test("handles edge cases with extremely small maxLength", () => {
|
|
120
|
+
expect((0, strings_utilities_1.ellipsesInMiddle)("abcdefghij", 3)).toBe("...");
|
|
121
|
+
expect((0, strings_utilities_1.ellipsesInMiddle)("abcdefghij", 2, "--")).toBe("--");
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
describe("nameWithOptions", () => {
|
|
125
|
+
it("parses simple name", () => {
|
|
126
|
+
expect((0, strings_utilities_1.nameWithOptions)("name")).toEqual({ name: "name", options: [] });
|
|
127
|
+
});
|
|
128
|
+
it("parses name with single option", () => {
|
|
129
|
+
expect((0, strings_utilities_1.nameWithOptions)("name(option)")).toEqual({ name: "name", options: ["option"] });
|
|
130
|
+
});
|
|
131
|
+
it("parses name with spaces and single option", () => {
|
|
132
|
+
expect((0, strings_utilities_1.nameWithOptions)("name (option)")).toEqual({ name: "name", options: ["option"] });
|
|
133
|
+
});
|
|
134
|
+
it("parses name with multiple options", () => {
|
|
135
|
+
expect((0, strings_utilities_1.nameWithOptions)("name(opt1,opt2)")).toEqual({ name: "name", options: ["opt1", "opt2"] });
|
|
136
|
+
});
|
|
137
|
+
it("parses name with multiple options and spaces", () => {
|
|
138
|
+
expect((0, strings_utilities_1.nameWithOptions)("name (opt1, opt2)")).toEqual({ name: "name", options: ["opt1", "opt2"] });
|
|
139
|
+
});
|
|
140
|
+
it("parses empty options", () => {
|
|
141
|
+
expect((0, strings_utilities_1.nameWithOptions)("name()")).toEqual({ name: "name", options: [] });
|
|
142
|
+
});
|
|
143
|
+
it("trims unnecessary whitespace", () => {
|
|
144
|
+
expect((0, strings_utilities_1.nameWithOptions)(" name ( opt1 , opt2 ) ")).toEqual({ name: "name", options: ["opt1", "opt2"] });
|
|
145
|
+
});
|
|
146
|
+
it("handles completely empty input", () => {
|
|
147
|
+
expect((0, strings_utilities_1.nameWithOptions)("")).toEqual({ name: "", options: [] });
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
describe("parseAttributeValue", () => {
|
|
151
|
+
it("should parse valid attribute:value strings correctly", () => {
|
|
152
|
+
expect((0, strings_utilities_1.parseAttributeValue)("color:red")).toEqual({ attribute: "color", value: "red" });
|
|
153
|
+
expect((0, strings_utilities_1.parseAttributeValue)("size:large")).toEqual({ attribute: "size", value: "large" });
|
|
154
|
+
});
|
|
155
|
+
it("should handle no :", () => {
|
|
156
|
+
expect((0, strings_utilities_1.parseAttributeValue)("colorred")).toEqual({ attribute: "colorred" });
|
|
157
|
+
});
|
|
158
|
+
it("should throw an error for invalid formats", () => {
|
|
159
|
+
expect(() => (0, strings_utilities_1.parseAttributeValue)("color:")).toThrowError("Invalid attribute:value format: 'color:'");
|
|
160
|
+
expect(() => (0, strings_utilities_1.parseAttributeValue)(":red")).toThrowError("Invalid attribute:value format: ':red'");
|
|
161
|
+
expect(() => (0, strings_utilities_1.parseAttributeValue)("")).toThrowError("Invalid attribute:value format: ''");
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
describe("lastSegment", () => {
|
|
165
|
+
it("should return the last segment of a string defined by the marker", () => {
|
|
166
|
+
expect((0, strings_utilities_1.lastSegment)('one\\two')).toEqual('two');
|
|
167
|
+
expect((0, strings_utilities_1.lastSegment)('one/two')).toEqual('two');
|
|
168
|
+
expect((0, strings_utilities_1.lastSegment)('one/two', '/')).toEqual('two');
|
|
169
|
+
expect((0, strings_utilities_1.lastSegment)('one/two', '.')).toEqual('one/two');
|
|
170
|
+
expect((0, strings_utilities_1.lastSegment)(undefined, '.')).toEqual(undefined);
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
describe("allButLastSegment", () => {
|
|
174
|
+
it("should return all but the last segment of a string defined by the marker", () => {
|
|
175
|
+
expect((0, strings_utilities_1.allButLastSegment)('one\\two')).toEqual('one');
|
|
176
|
+
expect((0, strings_utilities_1.allButLastSegment)('one/two')).toEqual('one');
|
|
177
|
+
expect((0, strings_utilities_1.allButLastSegment)('one/two/three')).toEqual('one/two');
|
|
178
|
+
expect((0, strings_utilities_1.allButLastSegment)('one/two/three', '/')).toEqual('one/two');
|
|
179
|
+
expect((0, strings_utilities_1.allButLastSegment)('one/two/three', '\\')).toEqual('');
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
describe("firstSegment", () => {
|
|
183
|
+
it("should return the first segment of a string defined by the marker", () => {
|
|
184
|
+
expect((0, strings_utilities_1.firstSegment)('one/two', '/')).toEqual('one');
|
|
185
|
+
expect((0, strings_utilities_1.firstSegment)('one/two', '.')).toEqual('one/two');
|
|
186
|
+
expect((0, strings_utilities_1.firstSegment)(undefined, '.')).toEqual(undefined);
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
describe('toGitStoragePath', () => {
|
|
190
|
+
it('partitions long names correctly', () => {
|
|
191
|
+
expect((0, strings_utilities_1.toGitStoragePath)('abcdefghij')).toBe('ab/cd/efghij');
|
|
192
|
+
});
|
|
193
|
+
it('works on exactly 5 chars', () => {
|
|
194
|
+
expect((0, strings_utilities_1.toGitStoragePath)('12345')).toBe('12/34/5');
|
|
195
|
+
});
|
|
196
|
+
it('throws on short names', () => {
|
|
197
|
+
expect(() => (0, strings_utilities_1.toGitStoragePath)('abcd')).toThrow(/at least 5 chars/);
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
describe("safeId", () => {
|
|
201
|
+
test("replaces dots with underscores", () => {
|
|
202
|
+
expect((0, strings_utilities_1.safeId)("page1.section3.para6")).toBe("page1_section3_para6");
|
|
203
|
+
});
|
|
204
|
+
test("collapses and trims underscores from mixed junk", () => {
|
|
205
|
+
expect((0, strings_utilities_1.safeId)("a..b...c")).toBe("a_b_c");
|
|
206
|
+
expect((0, strings_utilities_1.safeId)("__a__b__")).toBe("a_b");
|
|
207
|
+
expect((0, strings_utilities_1.safeId)("a---b")).toBe("a---b"); // dashes are preserved
|
|
208
|
+
});
|
|
209
|
+
test("replaces spaces and punctuation with underscores", () => {
|
|
210
|
+
expect((0, strings_utilities_1.safeId)("hello world")).toBe("hello_world");
|
|
211
|
+
expect((0, strings_utilities_1.safeId)("hello/world?yes")).toBe("hello_world_yes");
|
|
212
|
+
expect((0, strings_utilities_1.safeId)("a (b) [c]")).toBe("a_b_c");
|
|
213
|
+
});
|
|
214
|
+
test("ensures the id starts with a letter by prefixing", () => {
|
|
215
|
+
expect((0, strings_utilities_1.safeId)("123")).toBe("id_123");
|
|
216
|
+
expect((0, strings_utilities_1.safeId)("_startsWithUnderscore")).toBe("startsWithUnderscore");
|
|
217
|
+
expect((0, strings_utilities_1.safeId)("-dash")).toBe("id_-dash");
|
|
218
|
+
});
|
|
219
|
+
test("uses custom prefix", () => {
|
|
220
|
+
expect((0, strings_utilities_1.safeId)("123", { prefix: "f" })).toBe("f_123");
|
|
221
|
+
expect((0, strings_utilities_1.safeId)("", { prefix: "f" })).toBe("f");
|
|
222
|
+
});
|
|
223
|
+
test("handles empty / whitespace-only input", () => {
|
|
224
|
+
expect((0, strings_utilities_1.safeId)("")).toBe("id");
|
|
225
|
+
expect((0, strings_utilities_1.safeId)(" ")).toBe("id");
|
|
226
|
+
expect((0, strings_utilities_1.safeId)("...", { prefix: "x" })).toBe("x");
|
|
227
|
+
});
|
|
228
|
+
test("is idempotent", () => {
|
|
229
|
+
const x = "page1.section3.para6";
|
|
230
|
+
expect((0, strings_utilities_1.safeId)((0, strings_utilities_1.safeId)(x))).toBe((0, strings_utilities_1.safeId)(x));
|
|
231
|
+
});
|
|
232
|
+
test("respects maxLen", () => {
|
|
233
|
+
const long = "a.".repeat(200); // becomes lots of "a_"
|
|
234
|
+
const out = (0, strings_utilities_1.safeId)(long, { maxLen: 20 });
|
|
235
|
+
expect(out.length).toBeLessThanOrEqual(20);
|
|
236
|
+
expect(/^[A-Za-z]/.test(out)).toBe(true);
|
|
237
|
+
});
|
|
238
|
+
test("only contains [A-Za-z0-9_-] after normalisation", () => {
|
|
239
|
+
const out = (0, strings_utilities_1.safeId)("Äß中 文.page!*&^%$#@!");
|
|
240
|
+
expect(out).toMatch(/^[A-Za-z][A-Za-z0-9_-]*$/);
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
//# sourceMappingURL=string.utilties.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.utilties.spec.js","sourceRoot":"","sources":["../../src/string.utilties.spec.ts"],"names":[],"mappings":";;AAAA,2DAAuN;AAGvN,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAClD,MAAM,CAAC,IAAA,oCAAgB,EAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACvD,MAAM,CAAC,IAAA,oCAAgB,EAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACpD,MAAM,CAAC,IAAA,oCAAgB,EAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QACpE,MAAM,CAAC,IAAA,oCAAgB,EAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;QACnC,MAAM,CAAC,IAAA,oCAAgB,EAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACpC,MAAM,CAAC,IAAA,oCAAgB,EAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAClE,MAAM,CAAC,IAAA,oCAAgB,EAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;Q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AM,CAAC,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;QAC3C,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACzD,MAAM,GAAG,GAAG,IAAA,0BAAM,EAAC,qBAAqB,CAAC,CAAC;QAC1C,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a camelCase string to a series of words with the first letter capitalized.
|
|
3
|
+
* Example: "thisText" => "This Text"
|
|
4
|
+
*
|
|
5
|
+
* @param input - The camelCase string to convert.
|
|
6
|
+
* @returns The formatted string.
|
|
7
|
+
*/
|
|
8
|
+
export declare function camelCaseToWords(input: string): string;
|
|
9
|
+
export declare function camelCase(input: string): string;
|
|
10
|
+
export declare function capitalizeFirstLetter(input: string): string;
|
|
11
|
+
export declare const ellipsesInMiddle: (text: string, maxLength: number, ellipsis?: string) => string;
|
|
12
|
+
export type NameAndOptions = {
|
|
13
|
+
name: string;
|
|
14
|
+
options: string[];
|
|
15
|
+
};
|
|
16
|
+
export declare function nameWithOptions(input: string): NameAndOptions;
|
|
17
|
+
export type AttributeValue = {
|
|
18
|
+
attribute: string;
|
|
19
|
+
value?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function parseAttributeValue(input: string): AttributeValue;
|
|
22
|
+
export declare function lastSegment(s: string, marker?: string | RegExp): string | undefined;
|
|
23
|
+
export declare function allButLastSegment(s: string, marker?: string | RegExp): string;
|
|
24
|
+
export declare function firstSegment(s: string, marker?: string | RegExp): string;
|
|
25
|
+
export declare function firstSegment(s: undefined, marker?: string | RegExp): undefined;
|
|
26
|
+
export declare function firstSegment(s: string | undefined, marker?: string | RegExp): string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Partition a string into “first two / next two / the rest”
|
|
29
|
+
* @param name – input string
|
|
30
|
+
* @returns partitioned string: “ab/cd/efghij”
|
|
31
|
+
* @throws if name.length < 5
|
|
32
|
+
*/
|
|
33
|
+
export declare function toGitStoragePath(name: string): string;
|
|
34
|
+
export type SafeIdOptions = {
|
|
35
|
+
/** Prefix to ensure the id is non-empty and starts sensibly */
|
|
36
|
+
prefix?: string;
|
|
37
|
+
/** Max length to avoid absurdly long ids; default 128 */
|
|
38
|
+
maxLen?: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Convert an arbitrary string into a safe, CSS-selector-friendly HTML id.
|
|
42
|
+
*
|
|
43
|
+
* Notes:
|
|
44
|
+
* - Replaces '.' with '_' to avoid querySelector/CSS escaping issues.
|
|
45
|
+
* - Replaces any non [A-Za-z0-9_-] characters with '_' and collapses repeats.
|
|
46
|
+
* - Ensures the result starts with a letter by prefixing if needed.
|
|
47
|
+
* - Deterministic and idempotent: safeId(safeId(x)) === safeId(x)
|
|
48
|
+
*/
|
|
49
|
+
export declare function safeId(raw: string, opts?: SafeIdOptions): string;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ellipsesInMiddle = void 0;
|
|
4
|
+
exports.camelCaseToWords = camelCaseToWords;
|
|
5
|
+
exports.camelCase = camelCase;
|
|
6
|
+
exports.capitalizeFirstLetter = capitalizeFirstLetter;
|
|
7
|
+
exports.nameWithOptions = nameWithOptions;
|
|
8
|
+
exports.parseAttributeValue = parseAttributeValue;
|
|
9
|
+
exports.lastSegment = lastSegment;
|
|
10
|
+
exports.allButLastSegment = allButLastSegment;
|
|
11
|
+
exports.firstSegment = firstSegment;
|
|
12
|
+
exports.toGitStoragePath = toGitStoragePath;
|
|
13
|
+
exports.safeId = safeId;
|
|
14
|
+
/**
|
|
15
|
+
* Converts a camelCase string to a series of words with the first letter capitalized.
|
|
16
|
+
* Example: "thisText" => "This Text"
|
|
17
|
+
*
|
|
18
|
+
* @param input - The camelCase string to convert.
|
|
19
|
+
* @returns The formatted string.
|
|
20
|
+
*/
|
|
21
|
+
function camelCaseToWords(input) {
|
|
22
|
+
if (!input)
|
|
23
|
+
return input;
|
|
24
|
+
return input
|
|
25
|
+
.replace(/([a-z])([A-Z])/g, "$1 $2") // Insert space before uppercase letters preceded by lowercase letters
|
|
26
|
+
.replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2") // Handle sequences of uppercase letters
|
|
27
|
+
.replace(/([a-zA-Z])([0-9])/g, "$1 $2") // Insert space before numbers following letters
|
|
28
|
+
.replace(/([0-9])([a-zA-Z])/g, "$1 $2") // Insert space before letters following numbers
|
|
29
|
+
.split(" ") // Split into words
|
|
30
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1)) // Capitalize each word
|
|
31
|
+
.join(" ") // Join words back into a string
|
|
32
|
+
.trim(); // Trim leading and trailing spaces
|
|
33
|
+
}
|
|
34
|
+
function camelCase(input) {
|
|
35
|
+
if (!input)
|
|
36
|
+
return input;
|
|
37
|
+
return input
|
|
38
|
+
.replace(/[^a-zA-Z@0-9\s-_]/g, "") // Remove special characters except spaces, hyphens, and underscores
|
|
39
|
+
.toLowerCase()
|
|
40
|
+
.split(/[\s-_]+/) // Split by space, hyphen, or underscore
|
|
41
|
+
.filter(x => x.trim().length > 0)
|
|
42
|
+
.map((word, index) => index === 0 ? word : word.charAt(0).toUpperCase() + word.slice(1))
|
|
43
|
+
.join("");
|
|
44
|
+
}
|
|
45
|
+
function capitalizeFirstLetter(input) {
|
|
46
|
+
if (!input)
|
|
47
|
+
return input;
|
|
48
|
+
return input.charAt(0).toUpperCase() + input.slice(1);
|
|
49
|
+
}
|
|
50
|
+
const ellipsesInMiddle = (text, maxLength, ellipsis = "...") => {
|
|
51
|
+
if (text.length <= maxLength)
|
|
52
|
+
return text;
|
|
53
|
+
const ellipsisLength = ellipsis.length;
|
|
54
|
+
const partLength = Math.floor((maxLength - ellipsisLength) / 2);
|
|
55
|
+
// Ensure we don't cut too much when maxLength is small
|
|
56
|
+
if (partLength <= 0)
|
|
57
|
+
return ellipsis;
|
|
58
|
+
const start = text.slice(0, partLength);
|
|
59
|
+
const end = text.slice(-partLength);
|
|
60
|
+
return `${start}${ellipsis}${end}`;
|
|
61
|
+
};
|
|
62
|
+
exports.ellipsesInMiddle = ellipsesInMiddle;
|
|
63
|
+
const nameWithOptionsRegex = /^\s*(.*?)\s*(?:\(\s*(.*?)\s*\))?\s*$/;
|
|
64
|
+
function nameWithOptions(input) {
|
|
65
|
+
const match = input.match(nameWithOptionsRegex);
|
|
66
|
+
if (!match)
|
|
67
|
+
return { name: input.trim(), options: [] };
|
|
68
|
+
const name = match[1].trim();
|
|
69
|
+
const optionsPart = match[2];
|
|
70
|
+
const options = optionsPart
|
|
71
|
+
? optionsPart.split(",").map((opt) => opt.trim()).filter((opt) => opt.length > 0)
|
|
72
|
+
: [];
|
|
73
|
+
return { name, options };
|
|
74
|
+
}
|
|
75
|
+
function parseAttributeValue(input) {
|
|
76
|
+
const parts = input.split(":");
|
|
77
|
+
if (parts.length === 1 && parts[0])
|
|
78
|
+
return { attribute: parts[0], value: undefined };
|
|
79
|
+
if (parts.length !== 2 || !parts[0] || !parts[1]) {
|
|
80
|
+
throw new Error(`Invalid attribute:value format: '${input}'`);
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
attribute: parts[0],
|
|
84
|
+
value: parts[1],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
let pathMarker = /[\/\\]/g;
|
|
88
|
+
function lastSegment(s, marker = pathMarker) {
|
|
89
|
+
if (s === undefined)
|
|
90
|
+
return undefined;
|
|
91
|
+
const parts = s.split(marker).filter(s => s.length > 0);
|
|
92
|
+
if (parts.length === 0)
|
|
93
|
+
return s;
|
|
94
|
+
return parts[parts.length - 1];
|
|
95
|
+
}
|
|
96
|
+
function allButLastSegment(s, marker = pathMarker) {
|
|
97
|
+
if (s === undefined)
|
|
98
|
+
return undefined;
|
|
99
|
+
const parts = s.split(marker).filter(s => s.length > 0);
|
|
100
|
+
if (parts.length === 0)
|
|
101
|
+
return s;
|
|
102
|
+
let result = parts.slice(0, -1).join('/');
|
|
103
|
+
return result;
|
|
104
|
+
}
|
|
105
|
+
function firstSegment(s, marker = pathMarker) {
|
|
106
|
+
if (s === undefined)
|
|
107
|
+
return undefined;
|
|
108
|
+
const parts = s.split(marker).filter(s => s.length > 0);
|
|
109
|
+
if (parts.length === 0)
|
|
110
|
+
return s;
|
|
111
|
+
return parts[0];
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Partition a string into “first two / next two / the rest”
|
|
115
|
+
* @param name – input string
|
|
116
|
+
* @returns partitioned string: “ab/cd/efghij”
|
|
117
|
+
* @throws if name.length < 5
|
|
118
|
+
*/
|
|
119
|
+
function toGitStoragePath(name) {
|
|
120
|
+
if (name.length < 5) {
|
|
121
|
+
throw new Error(`toGitStoragePath: input must be at least 5 chars, got ${name.length}: ${name}`);
|
|
122
|
+
}
|
|
123
|
+
const first = name.slice(0, 2);
|
|
124
|
+
const second = name.slice(2, 4);
|
|
125
|
+
const rest = name.slice(4);
|
|
126
|
+
return `${first}/${second}/${rest}`;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Convert an arbitrary string into a safe, CSS-selector-friendly HTML id.
|
|
130
|
+
*
|
|
131
|
+
* Notes:
|
|
132
|
+
* - Replaces '.' with '_' to avoid querySelector/CSS escaping issues.
|
|
133
|
+
* - Replaces any non [A-Za-z0-9_-] characters with '_' and collapses repeats.
|
|
134
|
+
* - Ensures the result starts with a letter by prefixing if needed.
|
|
135
|
+
* - Deterministic and idempotent: safeId(safeId(x)) === safeId(x)
|
|
136
|
+
*/
|
|
137
|
+
function safeId(raw, opts = {}) {
|
|
138
|
+
const prefix = opts.prefix ?? "id";
|
|
139
|
+
const maxLen = opts.maxLen ?? 128;
|
|
140
|
+
const input = String(raw ?? "");
|
|
141
|
+
// 1) Replace dots (the big practical gotcha) and normalise everything else.
|
|
142
|
+
// Keep only A-Z a-z 0-9 _ -
|
|
143
|
+
let out = input
|
|
144
|
+
.replace(/\./g, "_")
|
|
145
|
+
.replace(/[^A-Za-z0-9_-]+/g, "_")
|
|
146
|
+
.replace(/_+/g, "_")
|
|
147
|
+
.replace(/^_+|_+$/g, "");
|
|
148
|
+
// 2) If empty, use prefix.
|
|
149
|
+
if (!out)
|
|
150
|
+
out = prefix;
|
|
151
|
+
// 3) Ensure starts with a letter (tooling friendliness).
|
|
152
|
+
// If it doesn't, prefix it (with underscore separator to keep stable + readable).
|
|
153
|
+
if (!/^[A-Za-z]/.test(out))
|
|
154
|
+
out = `${prefix}_${out}`;
|
|
155
|
+
// 4) Enforce max length (keep prefix + beginning, deterministic).
|
|
156
|
+
if (out.length > maxLen)
|
|
157
|
+
out = out.slice(0, maxLen);
|
|
158
|
+
// 5) If truncation ends with underscore(s), trim.
|
|
159
|
+
out = out.replace(/_+$/g, "");
|
|
160
|
+
// 6) Still empty after trimming? Fall back.
|
|
161
|
+
if (!out)
|
|
162
|
+
out = prefix;
|
|
163
|
+
return out;
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=strings.utilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings.utilities.js","sourceRoot":"","sources":["../../src/strings.utilities.ts"],"names":[],"mappings":";;;AAOA,4CAWC;AAED,8BAWC;AAGD,sDAGC;AA6BD,0CAYC;AAOD,kDAWC;AAGD,kCAKC;AACD,8CAMC;AAID,oCASC;AAOD,4CAQC;AAkBD,wBA+BC;AA5LD;;;;;;GAMG;AACH,SAAgB,gBAAgB,CAAC,KAAa;IAC1C,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IACzB,OAAO,KAAK;SACP,OAAO,CAAC,iBAAiB,EAAE,O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ol-ts project",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index",
|
|
7
7
|
"browserslist": {
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"files": [
|
|
45
45
|
"dist/index.js",
|
|
46
46
|
"dist/index.d.ts",
|
|
47
|
-
"dist/src/"
|
|
47
|
+
"dist/src/",
|
|
48
|
+
"dist/**/*"
|
|
48
49
|
],
|
|
49
50
|
"keywords": [
|
|
50
51
|
"indexing"
|