fb2-clean 0.2.2

A CLI utility for clean fb2 files.
Documentation

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