File: js-beautify-py.1

package info (click to toggle)
python-jsbeautifier 1.14.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 816 kB
  • sloc: python: 13,038; sh: 14; makefile: 9
file content (118 lines) | stat: -rw-r--r-- 3,500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.49.1.
.TH JS-BEAUTIFY "1" "April 2022" "js-beautify 1.14.2" "User Commands"
.SH NAME
js-beautify \- beautify, unpack or deobfuscate JavaScript
.SH SYNOPSIS
.B jsbeautifier.py
[\fI\,options\/\fR] \fI\,<infile>\/\fR
.SH DESCRIPTION
jsbeautifier.py@1.14.2
.PP
Javascript beautifier (https://beautifier.io/)
.IP
<infile> can be "\-", which means stdin.
.PP
Input options:
.TP
\fB\-i\fR,  \fB\-\-stdin\fR
Read input from stdin
.PP
Output options:
.TP
\fB\-s\fR,  \fB\-\-indent\-size\fR=\fI\,NUMBER\/\fR
Indentation size. (default 4).
.TP
\fB\-c\fR,  \fB\-\-indent\-char\fR=\fI\,CHAR\/\fR
Character to indent with. (default space).
.TP
\fB\-e\fR,  \fB\-\-eol\fR=\fI\,STRING\/\fR
Character(s) to use as line terminators.
(default first newline in file, otherwise "\en")
.TP
\fB\-t\fR,  \fB\-\-indent\-with\-tabs\fR
Indent with tabs, overrides \fB\-s\fR and \fB\-c\fR
.TP
\fB\-d\fR,  \fB\-\-disable\-preserve\-newlines\fR
Do not preserve existing line breaks.
.TP
\fB\-P\fR,  \fB\-\-space\-in\-paren\fR
Add padding spaces within paren, ie. f( a, b )
.TP
\fB\-E\fR,  \fB\-\-space\-in\-empty\-paren\fR
Add a single space inside empty paren, ie. f( )
.TP
\fB\-j\fR,  \fB\-\-jslint\-happy\fR
More jslint\-compatible output
.TP
\fB\-a\fR,  \fB\-\-space\-after\-anon\-function\fR
Add a space before an anonymous function's parens, ie. function ()
.TP
\fB\-\-space\-after\-named\-function\fR
Add a space before a named function's parens, i.e. function example ()
.TP
\fB\-b\fR,  \fB\-\-brace\-style\fR=\fI\,collapse\/\fR
Brace style (collapse, expand, end\-expand, none)(,preserve\-inline)
.TP
\fB\-k\fR,  \fB\-\-keep\-array\-indentation\fR
Keep array indentation.
.TP
\fB\-\-quiet\fR
Suppress info about a file if nothing was changed.
.TP
\fB\-r\fR,  \fB\-\-replace\fR
Write output in\-place, replacing input
.TP
\fB\-o\fR,  \fB\-\-outfile\fR=\fI\,FILE\/\fR
Specify a file to output to (default stdout)
.TP
\fB\-f\fR,  \fB\-\-keep\-function\-indentation\fR
Do not re\-indent function bodies defined in var lines.
.TP
\fB\-x\fR,  \fB\-\-unescape\-strings\fR
Decode printable chars encoded in \exNN notation.
.TP
\fB\-X\fR,  \fB\-\-e4x\fR
Pass E4X xml literals through untouched
.TP
\fB\-C\fR,  \fB\-\-comma\-first\fR
Put commas at the beginning of new line instead of end.
.HP
\fB\-m\fR,
.TP
\fB\-\-max\-preserve\-newlines\fR=\fI\,NUMBER\/\fR
Number of line\-breaks to be preserved in one chunk (default 10)
.TP
\fB\-O\fR,  \fB\-\-operator\-position\fR=\fI\,STRING\/\fR
Set operator position (before\-newline, after\-newline, preserve\-newline)
.TP
\fB\-w\fR,  \fB\-\-wrap\-line\-length\fR
Attempt to wrap line when it exceeds this length.
NOTE: Line continues until next wrap point is found.
.TP
\fB\-n\fR,  \fB\-\-end\-with\-newline\fR
End output with newline
.TP
\fB\-\-indent\-empty\-lines\fR
Keep indentation on empty lines
.TP
\fB\-\-templating\fR
List of templating languages (auto,none,django,erb,handlebars,php,smarty) ["auto"] auto = none in JavaScript, all in html
.TP
\fB\-\-editorconfig\fR
Enable setting configuration from EditorConfig
.PP
Rarely needed options:
.TP
\fB\-\-eval\-code\fR
evaluate code if a JS interpreter is
installed. May be useful with some obfuscated
script but poses a potential security issue.
.TP
\fB\-l\fR,  \fB\-\-indent\-level\fR=\fI\,NUMBER\/\fR
Initial indentation level. (default 0).
.TP
\fB\-h\fR,  \fB\-\-help\fR, \fB\-\-usage\fR
Prints this help statement.
.TP
\fB\-v\fR,  \fB\-\-version\fR
Show the version