fb2-clean

Crates.iofb2-clean
lib.rsfb2-clean
version0.2.2
created_at2025-12-07 17:27:55.637758+00
updated_at2026-01-02 04:48:03.51291+00
descriptionA CLI utility for clean fb2 files.
homepage
repositoryhttps://github.com/nujievik/fb2-clean
max_upload_size
id1971966
size50,978
(nujievik)

documentation

README

fb2-clean

A CLI utility for clean fb2 files.

Tests

Quick Start

  1. Download an archive for your system.

  2. Unpack it.

  3. Run the unpacked fb2-clean in a directory with fb2 files.

Default Behaviour

  • Saves cleaned files to the cleaned subdirectory.

  • Cleans all fb2 and fb2.zip in a directory.

  • Removes binary, coverpage, and image tags.

  • Keeps input extension: saves fb2 as fb2 and fb2.zip as fb2.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 🤓

  1. Install Rust

  2. Clone the repo:

git clone https://github.com/nujievik/fb2-clean --depth 1
  1. Enter the project directory:
cd fb2-clean
  1. Build:
cargo build --release
  1. On success, the binary will be in target/release/fb2-clean
Commit count: 0

cargo fmt