https://github.com/ming900518/csv-to-json
A simple CLI tool for converting CSV file content to JSON.
https://github.com/ming900518/csv-to-json
command-line-tool csv json
Last synced: 9 months ago
JSON representation
A simple CLI tool for converting CSV file content to JSON.
- Host: GitHub
- URL: https://github.com/ming900518/csv-to-json
- Owner: ming900518
- License: mit
- Created: 2023-04-02T15:30:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-05T08:43:06.000Z (almost 3 years ago)
- Last Synced: 2025-05-31T23:16:54.890Z (10 months ago)
- Topics: command-line-tool, csv, json
- Language: Rust
- Homepage:
- Size: 36.1 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fast-csv-to-json
A simple CLI tool for converting CSV file content to JSON.
我花了一個小時搓出來,接著優化了兩天的快速 CSV 轉 JSON CLI 小工具
## Installation
> Install Rust with [rustup](https://rustup.rs) first.
Use [`cargo` command](https://crates.io) to install this tool.
```
cargo install fast-csv-to-json
```
> SIMD optimization has been disabled due to Rust nightly toolchain requirement,
> you can still grab SIMD enabled code from
> [simd-enabled branch](https://github.com/ming900518/csv-to-json/tree/simd-enabled)
> and compile this tool manually.
## Usage
```
Fast CSV to JSON - A simple CLI tool for converting CSV file content to JSON.
Usage: fast-csv-to-json [OPTIONS] --input
Options:
-i, --input Specify CSV input file. Required
-o, --output Specify JSON output file. Optional (If not set, the result will be printed out directly.)
-h, --help Print help
-V, --version Print version
```
## About this Project
[83% 性能提升!CSV 至 JSON 轉換工具(fast-csv-to-json)優化記錄 (Blog post written in Chinese)](https://mingchang.tw/blog/Journey-of-Csv-to-Json-Optimization.md)