Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

rokucommunity/brightscript-formatter

Repository files navigation

⚠️ Warning

This project is no longer maintained. Its successor is brighterscript-formatter, which can format all valid brightscript.

brightscript-formatter

A code formatter for Roku's BrightScript language

Build Status Coverage Status npm

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

About

This project is no longer maintained. Its successor is brighterscript-formatter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5