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

ziu

v2.0.2

Published

a simple CLI for scaffolding Vue.js/React.js/微信小程序/支付宝小程序/jQuery projects.

Readme

ziu

a simple CLI for scaffolding Vue.js/React.js/微信小程序/支付宝小程序/jQuery projects.

Installation

  • Node.js >= 6.4
$ npm install -g ziu

Usage

$ ziu init <project-name>

Example:

$ ziu init test

The command pulls the templates from ziu-templates, and then we list all templates in the repro. Like this: aliapp - 支付宝小程序模板 bdapp - 百度小程序模板 lib-pac - 基于Rollup打包组件和基础库模板 react - a react template with webpack ttapp - 头条/抖音小程序模板 usual - 传统项目模板(use jQuery) vue-3 - 使用vue-cli@3版本的项目模板 weapp - 微信小程序模板

then, prompts for some information, and generates the project at ./test/.

查看已有的项目模板

ziu list

环境变量

  • 每一个模板都有4中环境,development、testing、staging、production

  • 环境变量是以yaml的文件格式编译,在项目根目录下的config文件夹下有5个yaml文件,default.yml、development.yml、testing.yml、staging.yml、production.yml,分别对应4中环境中使用的环境变量;default.yml是默认配置,其他环境的配置会和default.yml中的配置合并

  • 环境变量在JavaScript中获取

yaml中配置的环境变量都存储在process.env.ENV_DATA中:

// 获取当前环境
// 这里并没有使用process.env.NODE_ENV作为环境区分,主要为了避免第三方库依赖process.env.NODE_ENV导致出现异常
const env = process.env.ENV_DATA.PRJ_ENV;

Dev

$ npm run dev

start a local server to development

Testing

generates tesing files

$ npm run testing

build

$ npm run build

generates production files