brightscript-formatter

A formatter for Roku's BrightScript language, written in JavaScript

This project is no longer maintained. Use https://npmjs.org/brighterscript-formatter instead
Last updated a month ago by twitchbronbron .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install brightscript-formatter 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.7.1                                ...           latest (a month ago)

22 Versions

  • 1.7.1 [deprecated]           ...           a month ago
  • 1.7.0 [deprecated]           ...           2 months ago
  • 1.6.0 [deprecated]           ...           4 months ago
  • 1.5.0 [deprecated]           ...           10 months ago
  • 1.4.0 [deprecated]           ...           a year ago
  • 1.3.0 [deprecated]           ...           a year ago
  • 1.2.0 [deprecated]           ...           a year ago
  • 1.1.3 [deprecated]           ...           2 years ago
  • 1.1.2 [deprecated]           ...           2 years ago
  • 1.1.1 [deprecated]           ...           2 years ago
  • 1.1.0 [deprecated]           ...           2 years ago
  • 1.0.0 [deprecated]           ...           2 years ago
  • 1.0.0-alpha.10                                ...           2 years ago
  • 1.0.0-alpha.9                                ...           2 years ago
  • 1.0.0-alpha.8                                ...           2 years ago
  • 1.0.0-alpha.7                                ...           2 years ago
  • 1.0.0-alpha.6                                ...           2 years ago
  • 1.0.0-alpha.5                                ...           2 years ago
  • 1.0.0-alpha.4                                ...           2 years ago
  • 1.0.0-alpha.3                                ...           2 years ago
  • 1.0.0-alpha.2                                ...           2 years ago
  • 1.0.0-alpha.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 23
Last Day 0
Last Week 22
Last Month 1
Dependencies (5)
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |