Home Reference Source

Variable

Static Public Summary
public

Formatter: {"createJavaFormatter": function}

The entry point of the module.

Static Public

public Formatter: {"createJavaFormatter": function} source

import Formatter from 'auto-format/src/index.js'

The entry point of the module. Here formatters for various languages can be created. As of right now, only Java is available.

The formatUnit is always the token to be used for line indentations (ex. 2 spaces and 4 spaces).

Available functions:

  • JavaFormatter createJavaFormatter(formatUnit:String)