Crates.io | usv-to-asv |
lib.rs | usv-to-asv |
version | 1.5.2 |
source | src |
created_at | 2024-03-16 13:29:44.327292 |
updated_at | 2024-04-11 19:35:51.110568 |
description | USV to ASV: Convert Unicode Separated Values (USV) to ASCII Separated Values (ASV) such as for data markup, including for spreadsheets, databases, text files, and more. |
homepage | |
repository | https://github.com/sixarm/usv-to-asv-rust-crate/ |
max_upload_size | |
id | 1175614 |
size | 37,304 |
Convert Unicode Separated Values (USV) to ASCII Separated Values (ASV). Built with the USV Rust crate.
Syntax:
stdin | usv-to-asv | stdout
Example:
cat example.usv | usv-to-asv
Example with output to a file:
cat example.usv | usv-to-asv > example.asv
-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-asv
Link: https://crates.io/crates/usv-to-asv
Suppose example.usv contains:
a␟b␟␞
c␟d␟␞
Run:
cat example.usv | usv-to-asv
Output:
a\u001Fb\u001E
c\u001Fd\u001E
Use this command when you want to convert from USV to ASV.
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 ASV data, such as for a spreadsheet import.
Our real-world use case is converting a bunch of document-oriented data from a variety of programs to a variety of data formats, spreadsheets, and databases.
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.