Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weaming/rs-cjy
Convert between CSV, JSON, YAML.
https://github.com/weaming/rs-cjy
csv json yaml
Last synced: 2 months ago
JSON representation
Convert between CSV, JSON, YAML.
- Host: GitHub
- URL: https://github.com/weaming/rs-cjy
- Owner: weaming
- Created: 2018-10-09T08:55:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-11T10:15:41.000Z (over 2 years ago)
- Last Synced: 2024-10-31T11:50:29.195Z (3 months ago)
- Topics: csv, json, yaml
- Language: Rust
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
* [x] keep order of headers
* [x] parse for different field types