interface FormatOptions {
    ascii_only?: boolean;
    beautify?: boolean;
    braces?: boolean;
    comments?: boolean | RegExp | "some" | "all" | ((node, comment) => boolean);
    ecma?: ECMA;
    ie8?: boolean;
    indent_level?: number;
    indent_start?: number;
    inline_script?: boolean;
    keep_numbers?: boolean;
    keep_quoted_props?: boolean;
    max_line_len?: number | false;
    preamble?: string;
    preserve_annotations?: boolean;
    quote_keys?: boolean;
    quote_style?: OutputQuoteStyle;
    safari10?: boolean;
    semicolons?: boolean;
    shebang?: boolean;
    shorthand?: boolean;
    source_map?: SourceMapOptions;
    webkit?: boolean;
    width?: number;
    wrap_func_args?: boolean;
    wrap_iife?: boolean;
}

Properties

ascii_only?: boolean
beautify?: boolean

Deprecated

Not implemented anymore

braces?: boolean
comments?: boolean | RegExp | "some" | "all" | ((node, comment) => boolean)

Type declaration

    • (node, comment): boolean
    • Parameters

      • node: any
      • comment: {
            col: number;
            line: number;
            pos: number;
            type: "comment1" | "comment2" | "comment3" | "comment4";
            value: string;
        }
        • col: number
        • line: number
        • pos: number
        • type: "comment1" | "comment2" | "comment3" | "comment4"
        • value: string

      Returns boolean

ecma?: ECMA
ie8?: boolean
indent_level?: number
indent_start?: number
inline_script?: boolean
keep_numbers?: boolean
keep_quoted_props?: boolean
max_line_len?: number | false
preamble?: string
preserve_annotations?: boolean
quote_keys?: boolean
quote_style?: OutputQuoteStyle
safari10?: boolean
semicolons?: boolean
shebang?: boolean
shorthand?: boolean
source_map?: SourceMapOptions
webkit?: boolean
width?: number
wrap_func_args?: boolean
wrap_iife?: boolean