Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

JsFormatOptions

These properties are mostly not implemented yet, but it exists to support passing terser config to swc minify without modification.

interface JsFormatOptions {
asciiOnly?: boolean;
beautify?: boolean;
braces?: boolean;
comments?: false | "some" | "all";
indentLevel?: number;
indentStart?: number;
inlineScript?: number;
keepNumbers?: number;
keepQuotedProps?: boolean;
maxLineLen?: number | false;
preamble?: string;
preserveAnnotations?: boolean;
quoteKeys?: boolean;
quoteStyle?: boolean;
safari10?: boolean;
semicolons?: boolean;
shebang?: boolean;
webkit?: boolean;
wrapFuncArgs?: boolean;
wrapIife?: boolean;
}

§Properties

§
asciiOnly?: boolean
[src]

Currently noop.

§
beautify?: boolean
[src]

Currently noop.

§
braces?: boolean
[src]

Currently noop.

§
comments?: false | "some" | "all"
[src]
  • false: removes all comments
  • 'some': preserves some comments
  • 'all': preserves all comments
§

Currently noop.

§
indentLevel?: number
[src]

Currently noop.

§
indentStart?: number
[src]

Currently noop.

§
inlineScript?: number
[src]

Currently noop.

§
keepNumbers?: number
[src]

Currently noop.

§
keepQuotedProps?: boolean
[src]

Currently noop.

§
maxLineLen?: number | false
[src]

Currently noop.

§
preamble?: string
[src]

Currently noop.

§
preserveAnnotations?: boolean
[src]

Currently noop.

§
quoteKeys?: boolean
[src]

Currently noop.

§
quoteStyle?: boolean
[src]

Currently noop.

§
safari10?: boolean
[src]

Currently noop.

§
semicolons?: boolean
[src]

Currently noop.

§
shebang?: boolean
[src]

Currently noop.

§
webkit?: boolean
[src]

Currently noop.

§
wrapFuncArgs?: boolean
[src]

Currently noop.

§
wrapIife?: boolean
[src]

Currently noop.