textbuilder
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

TextBuilder

Circle CI status

A simple library to output text, with support for intended blocks.

Example usage

let textBuilder = new TextBuilder();
textBuilder.append('Line 1\n');
textBuilder.indented(() => {
  textBuilder.append('Indented line 2\n');
});
textBuilder.append('Line 3');
console.log(textBuilder.build());

/*
Produces the given output:
Line 1
  Indented line 2
Line 3 with something appended
*/

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i textbuilder

    Weekly Downloads

    1

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    3.81 kB

    Total Files

    4

    Last publish

    Collaborators

    • fwouts