1 unstable release
0.1.0 | Jul 17, 2024 |
---|
#1006 in Text processing
25 downloads per month
8KB
90 lines
xconv
xconv
is a high-performance batch file encoding conversion tool written in Rust. It supports converting files or directories from one encoding to another, with a focus on speed and efficiency.
Features
- Batch Conversion: Convert multiple files or entire directories at once.
- High Performance: Utilizes Rust's concurrency features to achieve maximum performance.
- Flexible Input and Output: Specify input and output as files or directories.
- Easy to Use: Simple command-line interface.
Installation
You can install xconv
using cargo
, the Rust package manager:
cargo install xconv
Usage
xconv -i <input_path> -o <output_path> -f <source_encoding> -t <target_encoding>
Examples
Convert a Single File
xconv -i /path/to/input_file.txt -o /path/to/output_file.txt -f UTF-8 -t GBK
Convert All Files in a Directory
xconv -i /path/to/input_dir -o /path/to/output_dir -f UTF-8 -t GBK
Command-Line Options
- -i, --input: Path to the input file or directory.
- -o, --output: Path to the output file or directory.
- -f, --from: Source encoding.
- -t, --to: Target encoding.
License
xconv
is licensed under the MIT license. See LICENSE for more details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
Dependencies
~8–15MB
~243K SLoC