parser-cli

Crates.ioparser-cli
lib.rsparser-cli
version0.1.3
created_at2025-03-21 03:21:42.857063+00
updated_at2025-03-21 03:21:42.857063+00
descriptionCommand-line interface for extracting text from various file formats
homepage
repositoryhttps://github.com/excoffierleonard/parser
max_upload_size
id1600053
size46,418
Leonard Excoffier (excoffierleonard)

documentation

https://docs.rs/parser-cli

README

Parser CLI

Command-line interface for the parser-core library, enabling text extraction from various document formats.

Features

  • Extract text from multiple files in a single command
  • Support for all formats handled by parser-core
  • Stream results to stdout for piping to other tools

Installation

# From source
cargo install --path .

# Or within the workspace
cargo build -p parser-cli

Usage

Parse one or more files and extract their text content to stdout:

parser-cli <FILES>...

Example:

parser-cli document.pdf presentation.pptx report.docx

Integration

Useful in shell pipelines:

# Count words in a document
parser-cli document.pdf | wc -w

# Search for text in multiple documents
parser-cli *.pdf | grep "search term"
Commit count: 352

cargo fmt