This package has been deprecated

Author message:

This project is no longer maintained. Use https://npmjs.org/brighterscript-formatter instead

brightscript-formatter
TypeScript icon, indicating that this package has built-in type declarations

1.7.1 • Public • Published

brightscript-formatter

A code formatter for Roku's BrightScript language

Build Status Coverage Status Greenkeeper badge 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

Readme

Keywords

none

Package Sidebar

Install

npm i brightscript-formatter

Weekly Downloads

0

Version

1.7.1

License

ISC

Unpacked Size

57 kB

Total Files

10

Last publish

Collaborators

  • georgejecook
  • chrisdp
  • triwav
  • twitchbronbron