Consolidate Lit repositories: figma-to-lit, figma_lit_example, lit-3d-piano, lit-calculator, lit-code-editor, lit-draggable-dom, lit-file-based-routing, lit-force-graph, lit-html-editor, lit-html-table, lit-modules, lit-native, lit-node-editor, lit-sheet-music, lit-starter-ts, lit-vscode-extension, lit-wmr, vite-lit-capacitor, vite-lit-element-starter, vite-rxdb-lit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
export class StringBuilder {
|
||||
private _lines: string[] = [];
|
||||
|
||||
write(line: string = ""): void {
|
||||
this._lines.push(line);
|
||||
}
|
||||
|
||||
writeln(line: string = ""): void {
|
||||
this._lines.push(line);
|
||||
this._lines.push("\n");
|
||||
}
|
||||
|
||||
writeAll(lines: string[]): void {
|
||||
this._lines.push(lines.join("\n"));
|
||||
}
|
||||
|
||||
toString(): string {
|
||||
return this._lines.join("");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user