Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOptText

Text option.
Text options set in configuration are merged with any text options set in the file that contains the build_include ( or varation of ). File level options will always take priority.

Config

bp = new BuildProcess();
const opt = {
 match: {
    kind: 'buildIncludeSlash',
    path: './md/'
  },
  text: {
    before: '\n',
    codekind: 'encode',
    code: 'jsString'
  }
};
const results = bp.buildInclude('','./includes/replace.js', opt);

See Examples

Examples

Hierarchy

  • IOptText

Index

Properties

Optional after

after: undefined | string

Text to apply after the contents of a file that is to be inserted. This is a literal string and can contain characters such as \n

Optional before

before: undefined | string

Text to apply before the contents of a file that is to be inserted. This is a literal string and can contain characters such as \n

Optional code

code: string | number

The type of encoding or decoding to apply to the contents of a file that is to be inserted. base64, base64Uri, jsString, tsString, uri, uriComponent

Optional codekind

codekind: string | number

Determines if file contents are to be encode or decoded before insertion. encode, decode

Optional indent

indent: boolean | string

Determins if the replacment should attempt to keep white-space indent when the replacement occured

Optional nolinebreaks

nolinebreaks: boolean | string

Boolean flag that determins if line breaks should be removed from contents of a file that is to be inserted. Default is false.

Optional padding

Padding options for each line of a file that is to be inserted.

Optional whiteSpaceLine

whiteSpaceLine: whiteSpLn

How to process white space lines.

Generated using TypeDoc