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

bst_cli

v1.10.0

Published

前端通用模板脚手架

Downloads

16

Readme

1.脚手架工具

构建一个企业级的前端模板开发脚手架,旨在提升企业前端工程开发效率。发布到npm 仓库之后,为了快速同步到 cnpm淘宝镜像仓库,可以执行访问链接完成同步: https://npm.taobao.org/sync/bst_cli('https://npm.taobao.org/sync/' + 'npm包名')

2.当前功能说明:

当前npm包发布到npm仓库之后,在本地全局安装:cnpm install -g bst_cli。通过全局命令 bst xxx 来生成各种通用脚手架或者工程模板。

3.npm命令及相关功能:

  • bst --version —— 查看当前版本
  • bst --help —— 查看帮助
  • bst init xxx(模板名) —— 从github 上同步已有的模板
  • bst create xxx(模板名) —— 终端显示出可选项安装模板,选择指定模板后在选择指定的版本。
  • bst initVue xxx(模板名) —— 为了解决github网络请求不通的问题,通过 nodejs 脚本实现了从仓库本地文件中直接拉取 vue 的一个前端通用模板。
  • bst initKoa xxx(模板名) —— 为了解决github网络请求不通的问题,通过 nodejs 脚本实现了从仓库本地文件中直接拉取 koa 的一个后台node模板。

4.npm命令执行的原理:

在全局安装好npm包之后,通过一系列 bst init xxx(模板名) 等命令实现前端模板模板快速搭建一个完整的项目结构的过程。本质上是通过执行 bin 文件的 cli.js 来实现的,即全局命令 bst init xxx(模板名) 相当于定位到 bin 文件目录执行 node cli.js init xxx(模板名)