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

dxr-cli

v1.0.8

Published

垫小二及其衍生项目的 cli 开发工具,自动生成模板

Readme

垫小二 cli,自动生成组件启动模板,提升开发效率

解决的问题:

每次新建项目都会有如下重复操作:

  1. 新建 api 文件,并将其在 api 根目录中注册并导出
  2. 新建 components 文件夹,填写表格和筛选模板,然后导出
  3. 新建 container 文件夹,引入 components ,然后导出
  4. 新建 url 文件, 引入 container ,然后注册路由
  5. 新建 store 文件,然后导出,并将其在 store 根目录中注册并导出

该 cli 的作用就是将这些步骤所用的时间节省下来,方便我们去做更重要的事情

启动方法如下

git clone http://sc-git/shixing.peng/dxr-admin-component-cli.git
cd dxr-admin-component-cli
npm install
npm i -g 或者 npm link
dxr-cli -c <组件名称>

目录说明

|--- cli-option 存放 cli 的各个参数,及其实现的功能
|
|--- content 存放模板内容
|
|--- utils 存放通用方法
|
|--- index 项目根目录
|
|--- publish.sh 发布到 npm 的脚本