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 🙏

© 2024 – Pkg Stats / Ryan Hefner

nonopic

v1.0.3

Published

properly size images for your next project

Downloads

3

Readme

NonoPic

Fork from Squoosh CLI by Google

Nono means 'baby' in Arabic.

NonoPic is a command-line interface for the Squoosh library, which allows you to process, optimize, and convert images using various codecs and preprocessors. It leverages multiple CPU cores for parallel processing and supports a wide range of image formats, including JPEG, PNG, and WebP.

Features

  • Supports a variety of codecs (e.g., WebP, MozJPEG, AVIF, and more)

  • Offers image preprocessing options (e.g., resize, rotate, and quantize)

  • Utilizes multiple CPU cores for parallel processing

  • Customizable output directory and file suffix

  • Processes images in the current directory and its subdirectories

  • Overwrites existing files with the same output name

Installation

npm i -g nonopic

Usage

This package is designed to replace and Process all .jpg, .png, and .webp files in the current directory and its subdirectories with new webp pictures that are auto-optimized.

Just by passing this command in your assets folder:

nonopic

if you want to take full control of the package you can do so using upcoming commands and more... :

nonopic [pattern]

Example:

nonopic "./path/to/image.jpg"
nonopic "./**/*.{jpg,png}"

You can specify an output directory:

nonopic -d "./output"

You can append a custom suffix to the output files:

nonopic -s "-optimized"

You can enable and configure preprocessors and codecs:

nonopic --resize '{"enabled":true,"width":1024}' --webp '{"quality":75}'

For more information on the available options, run:

nonopic --help

Osama Soliman @solimanware

License

MIT License.