npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

imop

v1.1.0

Published

An opensource cli image optimizer

Downloads

26

Readme

🖼️ imop - Image Optimizer

imop is a versatile command-line tool for optimizing and converting images. Built with Node.js, it offers both an interactive prompt and command-line arguments to make image optimization fast and efficient.

✨ Features

  • Batch Image Optimization: Process multiple images in a single run.
  • Format Conversion: Easily convert images to JPEG, PNG, or WebP.
  • Interactive Mode: A guided, step-by-step process for optimizing your images.
  • Command-Line Arguments: Quickly run optimizations directly from your terminal.
  • Quality Control: Optimizes images with a default quality setting of 80 to balance file size and visual fidelity.

🚀 Getting Started

Prerequisites

Make sure you have Node.js installed on your system.

Installation

npm install -g imop

or if you prefer using npx:

npx imop

note that all the arguments still available when you use npx because it gonna download it temporary on your computer.

Usage

imop can be used in many: via interactive prompts or with command-line arguments.


🖥️ Interactive Mode

Simply run the script without any arguments to start the interactive mode. The tool will ask you for the input directory, output directory, and the desired output format.

imop

You'll be guided through these prompts:

  • What is the path of the folder containing the images to optimize?
  • What is the name of the folder for the optimized images?
  • What output image format do you want?

⚙️ Command-Line Mode

For a faster workflow, you can specify all your options directly in the command. This is especially useful for scripting or repetitive tasks.

Syntax

imop [options]

Options

| Option | Alias | Description | Example | | :--- | :--- | :--- | :--- | | --jpeg | -j | Optimize images to JPEG format. | imop.js --jpeg | | --png | -p | Optimize images to PNG format. | imop.js --png | | --webp | -w | Optimize images to WebP format. | imop.js --webp | | --input | -i | Specify the input directory containing the source images. | imop.js --input ./my-photos | | --output | -o | Specify the output directory for the optimized images. | imop.js --output ./compressed-images |

Examples

Optimize all images to WebP format:

imop --webp

Convert images from one folder to another in JPEG format:

imop --jpeg --input ./source-images --output ./optimized-jpegs

Use a combination of options with short aliases:

imop -w -i ./photos -o ./output-folder

📝 Notes

  • Supported Formats: The tool automatically detects and processes .jpg, .jpeg, .png, .gif, and .webp files from the source directory.
  • Output Directory: If the specified output directory does not exist, imop will create it for you.
  • Default Quality: All images are optimized with a quality setting of 80 to ensure a good balance between compression and visual quality.

coded with love by @likeur