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

tmp-cli

v0.0.1

Published

tmp-cli

Readme

tmp-cli

tmp-cli work for FE projects cli template projects egg:vue-cli

安装

依赖 Node.js (>=6.x):

$ npm install tmp-cli -g

用法

$ tmp-cli init <template-name> <project-name>

初始化时可以关联一个远程仓库:

tmp-cli init <template-name> <project-name> -o remote-repo-url

示例:

$ tmp-cli init dwqs/vue-startup my-project

$ tmp-cli init waka-templates/vue-webpack2 my-project

关联一个远程仓库:

$ tmp-cli init vuejs-templates/webpack-simple my-project -o [email protected]:xxx/xxx.git

上述命令会从 vuejs-templates/webpack-simple 拉取 webpack 模板来初始化你的 ./my-project/ 项目.

基本命令

  • tmp-cli or tmp-cli -h --- 查看 tmp-cli 的帮助信息
  • tmp-cli init template-name your-project-name --- 用指定的模板初始化你的项目.
  • tmp-cli token -u your-github-user-name -p your-personal-token --- 设置 auth token,用于Rate Limiting.

tmp-cli listtmp-cli init 命令都会向 api.github.com 发起请求。在没设置 auth token 的情况下,github限制的请求频率是 60次/小时,超过次数之后,github会拒绝请求,返回403。

而设置token后,请求频率是5000次/小时。

相关文档:

远程仓库

tmp-cli 允许使用他人的 github repo 作为项目的模板:

tmp-cli init username/repo my-project

运行上述命令之后,将会使用 username/repo 作为模板来初始化你的项目. 但该仓库目录结构需要符合 template) 中的说明.

本地模板

tmp-cli 支持使用本地模板初始化项目:

tmp-cli init ~/local/template/path my-project

模板书写指南和样本:template

Note

模板必须符合两条规则:

  • 模板根目录下有 template 目录
  • 模板根目录下有 meta.{js,json} 文件

当你使用他人的github仓库或者本地模板时,如果github仓库或者本地模板的根目录没有 template 目录, tmp-cli 将会使用该仓库或者本地模板所在的目录作为渲染模板。

例如,你的本地模板目录是 ~/my-templates,如果 my-templates 下没有 template 目录,tmp-cli 则会使用 my-templates 作为渲染模板。

Thanks

To metalsmith scaffolder for the head start.cli脚手架