@withonevision/string-builder
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

String Builder

A simple port of a string builder like those found in C#, Java, and Go. This is useful where string concatenation would be very cumbersome to manage. This is NOT meant to be used for extremely large strings, as it is not optimized for that. It is meant to be used for small collections of strings that need to be built up over time.

import StringBuilder from "@withonevision/string-builder";

const builder = new StringBuilder();
builder.appendLine("Hello");
builder.append("World");

const output = builder.toString();
// Hello World

For a full list of functions, see the jsr.io documentation

/@withonevision/string-builder/

    Package Sidebar

    Install

    npm i @withonevision/string-builder

    Weekly Downloads

    7

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    12.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • shontzomania
    • kkmatt11