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

best11

v0.1.1

Published

tmpcli

Readme

tmp-cli

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

安装

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

$ npm install tmpcli -g

用法

如果想复制一个完整版的脚手架 eg:react-template cd 到你的代码文件夹下

$ tmpcli clone react-template

如果想复制一个可自定义的脚手架

eg:react-template

$ tmpcli init <template-name> <project-name>

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

tmpcli init <template-name> <project-name> -o remote-repo-url

示例:

$ tmpcli init dwqs/vue-startup my-project

$ tmpcli init waka-templates/vue-webpack2 my-project

关联一个远程仓库:

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

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

基本命令

  • tmpcli or tmpcli -h --- 查看 tmpcli 的帮助信息
  • tmpcli init template-name your-project-name --- 用指定的模板初始化你的项目.

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

相关文档:

本地模板

tmpcli 支持使用本地模板初始化项目:

tmpcli init ~/local/template/path my-project

模板书写指南和样本:template

Note

模板必须符合两条规则:

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

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

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