Yuc Stack
Here are the available commands:
default
Format the output as a prettified JSON.Note that if no command is set as first parameter,this command is used.
Parameters
- --append-eol
-
If
true
an EOL is appended to the output stream. Default:true
. Aliases:-ae
,-AE
. - --auto-list
-
If input is a XML file and some nested tag are duplicated (XML list), replace child by a list to keep a list in JSON. Note that it can lead to cases you have a list or an object (single case) so take care in your template of that detail. Aliases:
-al
,-AL
. - --buffer-provider-size
-
JSON parser buffer provider size. Default:
16384
. Aliases:-bps
,-BPS
. - --buffer-reader-size
-
In memory buffer size, i.e. the size which will be awaited before considering there are inputs. Too big will handle inputs as chunks (which is an issue do ndjson), too low will be slow. Aliases:
-brs
,-BRS
. - --charset
-
Charset to use to read the input stream. Default:
UTF-8
. Aliases:-c
,-C
. - --color-scheme-array
-
Structure color prefix. Default:
1;37
. Aliases:-CSA
,-csa
. - --color-scheme-comma
-
Comma color prefix. Default:
1;37
. Aliases:-CSC
,-csc
. - --color-scheme-false
-
False color prefix. Default:
3;37
. Aliases:-CSF
,-csf
. - --color-scheme-key
-
Key color prefix. Default:
1;34
. Aliases:-CSK
,-csk
. - --color-scheme-null
-
null color prefix. Default:
1;30
. Aliases:-CSN
,-csn
. - --color-scheme-number
-
Number color prefix. Default:
3;37
. Aliases:-CSNBR
,-csnbr
. - --color-scheme-object
-
Structure color prefix. Default:
1;37
. Aliases:-CSO
,-cso
. - --color-scheme-reset
-
Reset color suffix. Default:
0
. Aliases:-CSR
,-csr
. - --color-scheme-string
-
string color prefix. Default:
0;32
. Aliases:-CSS
,-css
. - --color-scheme-true
-
True color prefix. Default:
3,37
. Aliases:-CST
,-cst
. - --colored
-
If
true
output is colorized. Default is automatic, if a tty is detected colors are enabled else disabled. Aliases:-colored
,-COLORED
. - --handlebars
-
If
true
output is colorized. Default:{{this}}
. Aliases:-h
,-H
. - --input
-
Input the command should format, default to
stdin
if set to-
else a file path. Default:-
. Aliases:-i
,-I
. - --ndjson
-
If
true
, input is handled per line instead of globally. Aliases:-N
,-n
. - --ndjson-ignore-unknown
-
If
true
, not JSON/XML lines are swallowed. Aliases:-niu
,-NIU
. - --output
-
Output the command should use, default to
stdout
if set to-
else a file path. Default:-
. Aliases:-O
,-o
. - --output-type
-
Output type. Default:
PRETTY
. Aliases:-ot
,-OT
. - --pretty
-
Should the JSON be prettified. Default:
true
. Aliases:-P
,-p
.
help
Shows this text.
Parameters
- --output
-
Output the command should use, default to
stdout
if set to-
else a file path. Default:-
. Aliases:-o
,-O
.