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

images-processor

v1.0.3

Published

Readme

dynamic 图片批量编辑器项目

调试

项目基座由 tsdx (https://github.com/formium/tsdx#features) 搭建

启动

npm i # or yarn
npm start # or yarn start
  • 提供开发时的调试环境,用于边写代码边调试
cd example
npm i # or yarn
npm start # or yarn start
  • 支持 Storybook (https://storybook.js.org/)
# 根目录
yarn storybook

lint

tsdx lint src
tsdx lint src --fix
tsdx lint src --write-file

Jest

npm test or yarn test.

Bundle analysis

npm run size && npm run analyze.

Publish

  • 代码合并到 master/develop 会自动执行 gitlab-CI 来发布版本 (需遵守commit 信息规范)
  • master 版本执行 patch 版本号升级,develop 为 prerelease = "dev"
  • feat/auto-release 为自动发包测试分支
  • 如果你有 slack 可以加入 频道 或者搜索 ID: C029VH0K212
  • 每当版本发布会即时收到成功/失败信息

开发

工具和风格

  • ESLint + Prettier
    • FP only
    • 箭头函数 only
    • hooks only
    • 禁止 export default,只允许具名导出
    • 行数太长的文件请切分,有特例请在文件中 disable 该规则

CSS 的开发模式目前主要使用(CSS in JS "@emotion/css")

整体文件结构

src/

  • core/:系统核心
  • components/:组件库
  • logic/:业务有关的执行逻辑(比如尺寸计算,数据生成等,hotkey 等系统)
  • utils/:业务无关的 util(工厂函数等)
  • types/:TS 类型声明

可以用下面的代码更新 remote(建议用 ssh 的模式)

git remote set-url origin images-processor.git
git fetch --all --prune

分支

  • prod 主分支:master
  • dev 主分支:develop
  • test 主分支:test
  • 功能分支:feat/xxx
  • 修复分支:fix/xxx

子任务(feat or fix)完成后 merge 到 develop 上

提交流程:

  • 当前开发分支 feat/xxx
  • git add .
  • cz
  • git rebase -i HEAD~{你做的修改}
  • 修改信息,合并多次提交,wq 退出编辑
  • git pull origin develop --rebase 同步 dev
  • git push
  • git checkout 到 develop
  • git merge feat/xxx --no-ff

TodoList

  • [ ] 「twind」替换「macro.twind」
  • [ ] 「@emotion/css」替换「@emotion/react」
  • [ ] 移除由于引入「@emotion/react」而产生的不必要的配置代码,修复 SourceMap 问题