Skip to content

fwouts/textbuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published