2.0.3 • Published 6 years ago

textbuilder v2.0.3

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

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
*/
2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago