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 🙏

© 2025 – Pkg Stats / Ryan Hefner

tinyhere

v1.2.7

Published

Tool for compressing images with cli

Downloads

13

Readme

tinyhere

使用命令行压缩图片

Tool for compressing images with cli

1、全局安装/使用(initialization/use)

npm install tinyhere -g

第一次使用时,请先在 tinypng 获取 api-key 点击这里 ,输入用户名和邮箱后,到 个人中心 找到你的api-key,然后初始化后就可以使用了

$ tinyhere --add 12345678901234567890123456789012

For the first time, please get api-key in tinypng click here, enter your username and email, and go to user-center Find your api-key and initialize it to use it.

2、使用说明 (usage)

tinyhere

在当前目录下,获取目录里的 png、jpg/jpeg 图片,然后进行压缩,覆盖原有图片

In the current directory, get the png, jpg/jpeg images in the directory, and then compress to overwrite the original image.

$ tinyhere

// Compress the specified file
$ tinyhere xxx.png aaa.png ccc.jpg

tinyhere deep

把该目录内的所有图片(含子目录)的图片都进行压缩

Compress the images of all the images (including subdirectories) in the directory

$ tinyhere deep

tinyhere deep --path <newPath>

把该目录内的所有图片(含子目录)的图片都进行压缩到指定目录(使用相对路径)

Compress the images of all the images (including subdirectories) in the directory to the target directory (using relative paths)

$ tinyhere deep -p(--path) ./compress

tinyhere --path <newPath>

把压缩之后的图片放在另一个目录里(使用相对路径)

Put the compressed image in another directory (using a relative path)

$ tinyhere -p(--path) ./src

tinypng --add 12345678901234567890123456789012

添加其他api-key

Add another api-key

$ tinyhere -a(--add) 1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a

tinyhere --delete 12345678901234567890123456789012

删除指定api-key

Delete the specified api-key

$ tinyhere --delete 1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a

tinyhere --list

显示已储存的api-key

Show stored api-key

$ tinyhere -l(--list)

tinyhere --empty

清空已储存的api-key

Empty stored api-key

$ tinyhere --empty

tinypng --help

查看使用说明

tinypng --version

版本说明

3、addtion

每次成功/失败 都显示信息,在最后如果存在压缩失败,询问是否把压缩失败的再压一次,选择否之后,询问是否生成错误日志,然后退出

Each time the success/failure is displayed, if there is a compression failure at the end, ask whether to press the compression failure again. After selecting No, ask if the error log is generated, and then exit.