DEV Community

Bobo
Bobo

Posted on

cli-toolkit-pro: One npm Package to Process CSV, JSON, Images, PDFs, and Text

One CLI to Rule Them All

Tired of juggling a dozen different command-line tools for everyday file processing?

I got tired of it too. So I built cli-toolkit-pro -- a single npm package that does CSV, JSON, images, PDFs, and text processing under one command.

Install:

npm install -g cli-toolkit-pro
Enter fullscreen mode Exit fullscreen mode

What you get in one package:

toolkit csv merge -- Merge multiple CSV/Excel files
toolkit csv clean -- Deduplicate, format, normalize
toolkit image process -- Batch compress + resize + convert
toolkit image convert --format webp -- Generate WebP for web
toolkit json format -- Pretty-print or minify
toolkit json validate -- Catch malformed JSON
toolkit pdf merge -- Combine PDFs
toolkit pdf extract -- Extract text from PDFs
toolkit text replace -- Bulk find-and-replace
toolkit text count -- Word/line statistics
toolkit batch -- Pipeline automation + scheduling

Why one package?

  • Single dependency to install and update
  • Consistent syntax across all file types
  • No more Googling "how to batch rename" or "pdf merge cli"
  • Pipeline ready -- chain commands with pipes

Real world example -- clean data, convert images, merge reports in one script:

# Step 1: Clean raw CSV exports
toolkit csv clean raw_data.csv -o clean.csv

# Step 2: Compress all product images for web
toolkit image process ./photos/ --width 1200 --format webp -o ./web/

# Step 3: Merge monthly PDF reports
toolkit pdf merge report_*.pdf -o Q2_report.pdf
Enter fullscreen mode Exit fullscreen mode

Three file types, one CLI. No context switching.

Links:


Built with Node.js. MIT license. Contributions welcome.

Top comments (0)