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

zapibus

v1.0.11

Published

zApibus的客户端SDK,支持浏览器与Nodejs环境。

Readme

zApibus

zApibus的客户端SDK,支持浏览器与Nodejs环境。

安装

npm install --save zapibus

<script type="text/javascript" src="./dist/index.umd.js"></script>

使用

关于接口的响应数据,请参考zApibus的相关文档。

实例化对象

const zApibus = require("zapibus")
const bus = new zApibus(1, "a", { url: "http://127.0.0.1:8080/api" });
  • 参数一:对应服务端分配的appkey
  • 参数二:对应服务端分配的secret,可以设置为空。
  • 参数三:实例对象的选项,可选值请参考下一节。

调用接口

let response = await bus.Execute("time.get", { server: 2 },"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjgyNjYyNDMsInNlY3JldCI6ImFhYSJ9.JDOGLQBsFlLpBqalgEhPCKhPf4X7Ef_FO3cjdZsOYyU", { method: "POST" });
console.log(response);
  • 参数一:需要调用的接口
  • 参数二:接口的参数
  • 参数三:若是需要登陆的接口,需要传入认证信息。若参数为字符串,传入的参数为session参数,若传入的是一个对象,且包含有tokensecret字段,则为token参数,若传入参数为Promise对象时,取其结果进行判断。当为其它对象且第四个参数为空时,与第四个参数具有相同意义。
  • 参数四:zApibus实例选项,可选值能参考下一节。

实例选项

请参考axios文档,此处仅列出增加的参数。

  • axios:在默认情况下,浏览器端通过fetch调用接口,若要使用axios,请通过此参数传入一个axios的实例。