github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/commands/format.md (about) 1 # `format` 2 3 > Reformat one data-type into another data-type 4 5 ## Description 6 7 `format` takes a data from STDIN and returns that data reformated in another 8 specified data-type 9 10 ## Usage 11 12 ``` 13 <stdin> -> format data-type -> <stdout> 14 ``` 15 16 ## Examples 17 18 ``` 19 ยป tout json { "One": 1, "Two": 2, "Three": 3 } -> format yaml 20 One: 1 21 Three: 3 22 Two: 2 23 ``` 24 25 ## See Also 26 27 * [`Marshal()` (type)](../apis/Marshal.md): 28 Converts structured memory into a structured file format (eg for stdio) 29 * [`Unmarshal()` (type)](../apis/Unmarshal.md): 30 Converts a structured file format into structured memory 31 * [`cast`](../commands/cast.md): 32 Alters the data type of the previous function without altering it's output 33 * [`tout`](../commands/tout.md): 34 Print a string to the STDOUT and set it's data-type 35 36 <hr/> 37 38 This document was generated from [builtins/core/typemgmt/format_doc.yaml](https://github.com/lmorg/murex/blob/master/builtins/core/typemgmt/format_doc.yaml).