fb2-clean
A CLI utility for clean fb2 files.
Quick Start
-
Download an archive for your system.
-
Unpack it.
-
Run the unpacked
fb2-cleanin a directory with fb2 files.
Default Behaviour
-
Saves cleaned files to the
cleanedsubdirectory. -
Cleans all
fb2andfb2.zipin a directory. -
Removes
binary,coverpage, andimagetags. -
Keeps input extension: saves
fb2asfb2andfb2.zipasfb2.zip.
Advanced Use 🤓
Run fb2-clean -h to display help.
| Option | Description |
|---|---|
-i, --input <path> |
Input directory OR file |
-o, --output <dir> |
Output directory |
-r, --recursive [<n>] |
Recursive file search [up to n] |
-t, --tags <n[,m...]> |
Remove tags |
-z, --zip |
Compress fb2 to fb2.zip |
-Z, --unzip |
Uncompress fb2.zip to fb2 |
-f, --force |
Force overwrite input files |
-e, --exit-on-err |
Skip clean next files on error |
-j, --jobs <n> |
Max parallel jobs |
Manual Build 🤓
-
Install Rust
-
Clone the repo:
git clone https://github.com/nujievik/fb2-clean --depth 1
- Enter the project directory:
cd fb2-clean
- Build:
cargo build --release
- On success, the binary will be in
target/release/fb2-clean