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

tieba.js

v2.1.2

Published

一个基于JavaScript实现的百度贴吧API调用库。

Downloads

25

Readme

tieba.js

这是一个基于JavaScript实现的百度贴吧API调用库,支持在Node.js环境下使用。

特性

  • 接口丰富:提供了丰富的API接口,满足不同需求。
  • 类型齐全:确保在TypeScript项目中也能无缝使用。
  • 测试覆盖范围广:经过广泛的测试,确保代码的可靠性。

使用示例

以下是一个简单的使用示例:

import {getPanel, Config, consume} from "tieba.js";

Config.init({
    bduss: 'XXXXXXXXX',
    needPlainText: true,
    needTimestamp: false
});

const data = await consume(getPanel('Admire_02'));
console.dir(data)

Effect.js

本项目使用了Effect.js。Effect.js是一个功能强大的TypeScript框架,它提供了一个功能齐全的效果系统和丰富的标准库。它提供了用于处理异步、事件驱动数据处理的强大抽象和用于定义具有可组合计划的重试和重复策略的模块(当然它还不止于此)。 现在的getXXX函数都会返回一个Effect,为了消费这个Effect,需要用到提供的consumeconsumeAll(消费Effect数组,),consumeAllSuccess(消费Effect数组,并只返回成功的结果)。

贡献指南

欢迎您的贡献!

请注意在package.json中有insert-infopbjs-codegen两个脚本,若往项目中引入了新的proto文件,请先执行insert-info来插入 package信息 以保证生成静态代码的统一性。再执行pbjs-codegen生成由 protobufjspbjspbts CLI 生成的静态代码。

最后执行(或编写新的)测试用例。


测试用例应在Node.js版本大于22的情况下运行,否则会报错。