3 unstable releases
| 0.2.0 | Oct 27, 2025 |
|---|---|
| 0.1.1 | Jan 27, 2025 |
| 0.1.0 | Jan 27, 2025 |
#2 in #my-project
11KB
152 lines
A toolkit for file operations with a focus on encoding detection and conversion
Features
- Automatic encoding detection
- Batch conversion of non-UTF-8 files to UTF-8
- Smart binary file detection
- Interactive mode for bulk operations
Example
use file_kitty::encoding::scan_directory;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
scan_directory("./my_project", false, false).await?;
Ok(())
}
File Kitty
A file encoding detection and conversion tool.
Installation
cargo install file-kitty
Usage
Scan a directory for non-UTF-8 files:
file-kitty encoding --path ./src
Options:
-p, --path: Directory to scan-c, --convert: Auto-convert to UTF-8-v, --verbose: Show detailed info-t, --types: File extensions to process (e.g.,c,h,cpp,rs)
Default file types: c, h, cpp, rs, ts, js, txt, html, py, java, go, md, json, yaml, sh, sql, css
License
MIT
Dependencies
~7–11MB
~249K SLoC