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

@yibancangbai/easy-cli

v1.6.2

Published

简易使用的脚手架工具

Readme

介绍

	easy-cli是一个简单易用的脚手架工具,可以让用户通过简单的命令行交互获取远程模板工程来快速构建本地开发环境。

全局安装

npm install -g @yibancangbai/easy-cli

命令

以下是所有可用命令,您也可以通过在终端内输入easy -h来查看:

create <templateName> <projectName>:

	这种方式会在当前目录下创建文件名为```projectName```的项目,如果文件名已存在可选择合并、覆盖或取消操作。

	另外, ```projectName``` 可以是 ```.``` 代表直接在当前文件目录下初始化项目,而不会再创建文件夹。如果本地当前目录下已有存在的子文件,将默认采用合并的方式处理。

list:

	将会在终端内列出所有可用的模板列表

bind <url>:

	将会从远程获取包含模板配置信息的js文件内容,并通过nodejs将其内容写入```process.env.HOME```目录下生成的easyConfig.js文件。

使用

  1. 在任意静态服务器上传包含模板配置信息的js文件,该文件内容格式见下文;
  2. 终端中运行 easy bind <远程js文件地址>,将模板配置信息同步到本地;
  3. 运行 easy create 命令开始初始化本地项目;

模板配置文件

module.exports = {
  templateName: {
    name: 'easy-template-' + templateName,
    repo: 'http://gitlab.ops...,模板项目仓库页面地址,仅供查看',
    downloadUrl: '[email protected]...,模板项目的完整git clone地址,用于下载',
    description: '模板项目描述'
  },
  ......
}
	请严格按照以上格式编写配置文件,其中```templateName```由用户自定义,在运行```easy create```命令时使用。```downloadUrl```必须是完整的git clone地址,因为easy-cli会在本地运行```git clone```来获取远程代码。```name```属性也要稍微留意下,获取完远程代码后easy-cli会在本地当前目录创建一个临时文件夹用于承载下载的文件,该文件名用的就是```name```的属性值,虽然临时文件夹很快会被自动删除,但还是要尽量保证该文件名的唯一性,避免与同级目录内文件夹产生命名冲突。

持续更新。。。