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

zpack

v0.0.18

Published

前端自动化工具,动态打包,编译

Readme

ZPACK

zpack是一套前端开发工具, 其中包含了
  • 本地开发支持环境
  • 静态文件编译 css / js
  • 开发辅助工具等

如何安装

安装前提

nodejs & npm

安装

npm install zpack -g

使用

zpack {命令名}

特点

  • js/css打包压缩混淆自动化
  • 模块化: commonJS模块方案
  • js模板引擎的支持:mustach(hogan)/handlebars
  • css支持sass/less/stylus预编译器
  • 支持ES6(Babel处理),可直接在代码里用es6,自动转为es5兼容
  • 支持同步(sync)代码到服务器/开发机
  • 支持图片自动压缩优化
  • 本地代码修改watch监听功能
  • 本地开启server服务器,自动替换线上代码功能
  • webpack支持,可配置将js/css打包为一个文件
  • js/css版本号支持

配置文件 zpack.config.json

{
    "name" : "test" ,         // 组件名称
    "es6" : true, //是否使用es6,默认false

    // 将要导出至 `prd` 和 `dev` 目录的文件列表
    // 其中所有路径, 均相对于 `src` 目录
    "export" : [

        "./scripts/page-a.js" ,   

        // 允许某个文件不含版本号信息 
        {
            "path" : "./styles/page.scss" , 
            "noversion" : true
        }
        
    ] ,

}

支持模板类型

  • Handlebars
  • Mustache
  • strintg
  • html

支持的样式引擎

  • SCSS/SASS
  • Less
  • Stylus

基本命令

  • init: '初始化项目',
  • pack: '打包代码',
  • min: '压缩混淆代码',
  • img: '图片目录压缩',
  • watch : '监视代码修改',
  • sync: '同步代码到开发机',
  • server: '本地调试服务器'

stylesheet的两种模式

  • zpack.config.json中exports写入,单独导出文件
  • js文件中 require("a.scss") 会将js和css混编入一个js文件,适合SPA