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

yinumb-template

v1.0.6

Published

yinumb模板管理工具

Downloads

8

Readme

Yinumb-Template

这是专门为生成项目模板而打造的脚手架,开发者可根据自己的喜好制作模板然后保存起来,在开发新项目时只需要用保存的模板创建即可,从此不再需要在使用脚手架初始化项目后各种调节。其也内置了诸多的钩子,让你的项目更加的自动化~ (如有错误或建议欢迎提交至邮箱: [email protected])

This is a scaffolding specially created for generating project templates. Developers can make templates according to their own preferences and save them. When developing new projects, they only need to create with the saved templates. From now on, it is no longer necessary to use the scaffolding to initialize the project. Various adjustments. It also has many built-in hooks to make your project more automated~ (If you have any errors or suggestions, please submit them to the email: [email protected])


模块安装 (Module installation)

npm i yinumb-template -g

初始化项目 (Initialize the project)

ytp init umi --remote   // 初始化一个 umi 项目

以当前项目创建一个新模板 (Create a new template)

ytp -p newTemplate

压缩项目 (Compressed project)

ytp -z

解压项目 (Unzip the project)

ytp unzip

查看模板列表 (View the list of templates)

ytp list

更多命令 (More commands)

ytp -h


钩子函数 (Hook function)

此配置文件需使用 ytp hook --get 进行获取,在修改完成后可使用 ytp hook --save 进行保存 This configuration file needs to be obtained using ytp hook --get, and can be saved using ytp hook --save after the modification is completed.

initAfter(params: Params)   // 模板创建前调用
initBefore(params: Params)   // 模板创建后调用
publishAfter(params: Params)   // 模板提交后调用
publishBefor(params: Params)   // 模板提交前调用
deleteAfter(params: Params)   // 模板删除后调用
deleteBefore(params: Params)   // 模板删除前调用
zipAfter(params: Params)   // 压缩完成后调用
zipBefore(params: Params)   // 压缩进行前调用
unzipAfter(params: Params)   // 解压完成后调用
unzipBefore(params: Params)   // 解压进行前调用
saveHookAfte(params: Params)   // 保存hook文件后调用
other(params: Params)   // 指令未匹配到时调用