brightscript-formatter
A code formatter for Roku's BrightScript language
Usage
; //create a new instance of the formattervar formatter = ; //retrieve the raw brightscript file contents (probably from fs.readFile)var unformattedFileContents = ; var formattingOptions = {};//get a formatted version of the brightscript filevar formattedFileContents = formatter;
Formatting Options
There are many formatting options. Rather than listing them all out here, you should look at the typescript interface located