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

rebar-cli

v0.0.3

Published

It's a scalable template cli

Readme

rebar-cli

介绍

rebar-cli 是一个简单的脚手架工具,能够帮助你快速生成前端代码,脚手架内置多个模板,也支持扩展自定义模板,包括但不限于公司沉淀的各平台前端解决方案、插件开发模板、组件库开发模板等。

rebar 有「钢筋」的意思,钢筋在土地工程中起到的是建立楼体的作用,正如脚手架在前端的作用是快速搭建一个雏形的项目。

快速上手

安装

npm i rebar-cli -g

安装完成后,在命令行中输入 rebarrebar -h 即可查看到帮助信息,证明安装成功。

Usage: rebar <commad> [option]

Options:
  -v, --version                         output the version number
  -h, --help                            display help for command

Commands:
  create|init [options] <project-name>  Create a project
  config [options]                      Inspect and modify the config
  help [command]                        display help for command

创建第一个项目

在命令行输入 rebar create <project-name>即可创建项目。

rebar create my-app

我们也设置了 create 命令的别名,如:

rebar init my-app

配置

通过一下命令可以查看当前脚手架的配置:

rebar config

--get, -g <key>

获取指定配置。

--set, -s <key> <value>

修改指定配置。

--delete, -d <key>

删除指定配置。

配置字段说明

templates

模板列表,它是一个对象数组,里面有 name、value 字段,分别表示选项名称以及包名。

示例

{
  "templates": [
    {
      "name": "模板名称选项",
      "value": "包名"
    }
  ]
}

root

配置和缓存存储的目录,默认为用户根目录

示例

{
  "root": "/Users/admin"
}

registry

源地址,默认为 npm 源。

示例

{
  "registry": "https://registry.npmjs.org/"
}