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

chinese-cabbage

v1.3.1

Published

Front End Development Tool

Readme

chinese-cabbage

NPM version

chinese-cabbage是为前端开发人员准备的一款前端开发工具,利用它我们可以快速的在本地建立起一个高度仿真的线上环境。同时它自身集成了模板功能,为前端的模块化开发和显示与数据的分离提供了很好的支持。完善的接口仿真,完善的跨域支持为前端的开发和调试提供了诸多便利。 它是对于前后端分离的另一种尝试。

chinese-cabbage的核心思想是代理,通过设置浏览器代理,我们将所有的请求转发到chinese-cabbage中,chinese-cabbage根据配置文件预置的规则对请求进行匹配,然后根据不同的处理程序对请求做出相应的处理。

##How to Install


//全局安装chinese-cabbage
npm install chinese-cabbage -g

//初始化工作区
cc workspace init <workspace-name>

//进入到工作区所在目录,添加前端工程
cc project create <project-name>

//编辑工作区配置文件,启动服务
cc service start

How To Config


//chinses-cabbage 允许您创建多个工作区
//每个工作区通过工作区根目录下的workspace.js进行配置

//workspace.js
module.exports = {
    /*工作区目录,默认为当前路径*/
    basePath: process.cwd(),

    /*系统监听端口*/
    port: 8001,

    /*系统规则配置*/
    rules: [
        {
            pattern: "http://hello.tuniu.com/",
            handler: "project-handler"
        },
        /*对没有匹配到的请求做处理,将他们通过默认的处理程序全部路由到线上*/
        {
            pattern: /.*/,
            handler: "default-handler"
        }
    ]
}

Contact Me

欢迎反馈使用中遇到的问题或提出你宝贵的意见 Feel free to contact me if you have any question. EMAIL: [email protected]

##Happy Work , Happy Life !