Crates.io | usv-to-json |
lib.rs | usv-to-json |
version | 1.2.1 |
source | src |
created_at | 2024-03-17 20:04:47.673824 |
updated_at | 2024-04-11 19:54:58.225596 |
description | USV to JSON: Convert Unicode Separated Values (USV) to JavaScript Object Notation (JSON) for data markup, including for spreadsheets, databases, text files, and more. |
homepage | |
repository | https://github.com/sixarm/usv-to-json-rust-crate/ |
max_upload_size | |
id | 1176768 |
size | 38,673 |
Convert Unicode Separated Values (USV) to JavaScript Object Notation (JSON). Built with the USV Rust crate.
Syntax:
stdin | usv-to-json | stdout
Example:
cat example.usv | usv-to-json
More examples below.
-h, --help : Print help
-V, --version : Print version
-v, --verbose... : Set the verbosity level: 0=none, 1=error, 2=warn, 3=info, 4=debug, 5=trace. Example: --verbose …
--test : Print test output for debugging, verifying, tracing, and the like. Example: --test
Install:
cargo install usv-to-json
Link: https://crates.io/crates/usv-to-json
Suppose example.usv contains:
a␟b␟␞
c␟d␟␞
Run:
cat example.usv | usv-to-json
Output:
[
["a","b"],
["c","d"],
]
Example with output to a file:
cat example.usv | usv-to-json > example.json
Use this command when you want to convert from USV to JSON.
A typical use case is when you have USV data, such as a collection of units and records, and you want to convert it to JSON data, such as for a spreadsheet import.
Our real-world use case is converting a bunch of USV document-oriented data from a variety of programs, including a CMS, to USV so we're better-able to import the data into Excel.
See the documentation for USV.
Yes, USV is submitted to IETF.org as an Internet-Draft work in progress: link.
Yes, and you may freely use the USV RFC and USV Rust crate.
Constructive feedback welcome. Pull requests and feature requests welcome.