mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 11:51:10 +08:00
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
|
|
|
|
let bCss = js_beautify.css("body{display:none;}");
|
|
bCss = js_beautify.css_beautify("body{display:none;}");
|
|
|
|
let bHtml = js_beautify.html("<div/>");
|
|
bHtml = js_beautify.html_beautify("<div/>");
|
|
|
|
let optHtml = <HTMLBeautifyOptions> {};
|
|
let optCss = <CSSBeautifyOptions> {};
|
|
let optjs = <JsBeautifyOptions> {};
|
|
|
|
var simple: string = js_beautify("console.log('Hello world!');");
|
|
var full: string = js_beautify(
|
|
"console.log('Hello world!');",
|
|
{
|
|
"indent_size": 4,
|
|
"indent_char": " ",
|
|
"eol": "\n",
|
|
"indent_level": 0,
|
|
"indent_with_tabs": false,
|
|
"preserve_newlines": true,
|
|
"max_preserve_newlines": 10,
|
|
"jslint_happy": false,
|
|
"space_after_anon_function": false,
|
|
"brace_style": "collapse",
|
|
"keep_array_indentation": false,
|
|
"keep_function_indentation": false,
|
|
"space_before_conditional": true,
|
|
"break_chained_methods": false,
|
|
"eval_code": false,
|
|
"unescape_strings": false,
|
|
"wrap_line_length": 0,
|
|
"wrap_attributes": "auto",
|
|
"wrap_attributes_indent_size": 4,
|
|
"end_with_newline": false
|
|
});
|