Skip to content

Commit ddfc25f

Browse files
committed
Readme for jsonfmt
1 parent ba11eca commit ddfc25f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

cmd/jsonfmt/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# jsonfmt
2+
3+
Format JSON files either expanded, compact or single-line
4+
5+
## Options
6+
7+
* `--canonical`: the same output as `jq . --sort-keys`
8+
* `--line`: everything on a single line
9+
* `--trailing-newline`: if a trailing newline should be emitted
10+
* `--eol`: end-of-line character(s) `[ lf | cr' | crlf ]`. Default is `lf`.
11+
* `--fractured`: compact output with [FracturedJson](https://github.com/j-brooke/FracturedJson) using the [go-fractured-json](https://github.com/FileFormatInfo/go-fractured-json) library

0 commit comments

Comments
 (0)