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

zp-lib

v0.2.0

Published

lib

Readme

常用依赖

npm Build Status FOSSA Status

模块介绍

  • api,API Abstraction
  • base64,使用base64编码和解码字符串
    • encodeBase64
    • decodeBase64
  • bindCustomEvent,绑定customEvent
  • createAction,FSA Factory,无依赖
  • createReducer,Reducer Factory,无依赖
  • dispatch,事件代理用于事件分发
  • escapeHTML,转义字符串
  • machine,有限状态机
  • searchParams,返回object,存储location.search中的key-value对
  • storage,本地存储
  • Subject,观察者模式目标
  • Observer,观察者模式观察者
  • templater,模版引擎
    • templater,同步
    • templaterAsync,异步

示例见文档

browserslist

浏览器支持情况

npx browserslist

见.browserslistrc

测试和文档

测试和文档

npm test

运行单元测试

npm run jsdoc

# darwin
npm run open

生成和查看doc

资源

License

FOSSA Status