rs-cjy
Convert between CSV, JSON, YAML.
Install
After installation, you will get two executable binaries named csv-json
, json-yaml
and csv-yaml
.
Usage
They all accept from STDIN, print to STDOUT, and will try to dentect the input type then print as another type. If you want print pretty JSON, add PRETTY=1
environment.
TODO
- keep order of headers
- parse for different field types