Options
All
  • Public
  • Public/Protected
  • All
Menu

Breakstring

The various options of breakstring allow for the breaking of lines in different ways.
If the width option of breakstring is not set then width defaults to 80.

Note

File level options will always take priority unless override is set to true.

EXAMPLE

With the configuration below all inline BUILD_INCLUDE statments would have asJsString applied and each BUILD_INCLUE file would be split into lines that are 100 characters wide with extra line breaks removed using breakstring.

Config

const bp = new BuildProcess();
const opt = {
  match: {
    kind: "buildIncludeSlash"
  },
  asJsString: true,
  breakstring: {
    width: 100,
    break: 'width',
    eol: 'noLnBr'
  }
  override: true
}
const results = bp.buildInclude('','./includes/replace.txt', opt);

See Examples:

See Also: IOpt.breakstring

Build-include Options

Generated using TypeDoc