1.7.1 • Published 5 years ago
brightscript-formatter v1.7.1
brightscript-formatter
A code formatter for Roku's BrightScript language
Usage
import { BrightScriptFormatter } from 'brightscript-formatter';
//create a new instance of the formatter
var formatter = new BrightscriptFormatter();
//retrieve the raw brightscript file contents (probably from fs.readFile)
var unformattedFileContents = getFileAsStringSomehow();
var formattingOptions = {};
//get a formatted version of the brightscript file
var formattedFileContents = formatter.format(unformattedFileContents, formattingOptions);
Formatting Options
There are many formatting options. Rather than listing them all out here, you should look at the typescript interface located
1.7.1
5 years ago
1.7.0
5 years ago
1.6.0
5 years ago
1.5.0
5 years ago
1.4.0
5 years ago
1.3.0
6 years ago
1.2.0
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.0
6 years ago
1.0.0-alpha.10
7 years ago
1.0.0-alpha.9
7 years ago
1.0.0-alpha.8
7 years ago
1.0.0-alpha.7
7 years ago
1.0.0-alpha.6
7 years ago
1.0.0-alpha.5
7 years ago
1.0.0-alpha.4
7 years ago
1.0.0-alpha.3
7 years ago
1.0.0-alpha.2
7 years ago
1.0.0-alpha.1
7 years ago