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

weixin-server-sdk

v1.0.9

Published

一款目标是集成微信所有后端api的nodejs_SDK

Readme

一款目标是集成微信所有后端api的nodejs_SDK 希望有更多人来一起完成,因为涉及很多内容, 希望越来越好。 目前只集成了主要功能。 github地址: https://github.com/dadajiege123/weixin-server-sdk 使用方法:

import WeixinSDK from "weixin-server-sdk" 
const weixinSDK = new WeixinSDK();
async function startServer() {
    await weixinSDK.refreshConfig(() => ({
        WXMP_APPID: "wx8c9c5c5c5c5c5c5c",
        WXMP_APPSECRET: "8c9c5c5c5c5c5c5c5c5c5c5c5c5c5c5c",
        WXPAY_MCHID: "123456",
        WXPAY_mchApiCert_serialNo: "123456",
        WXPAY_mchApiCert_privateKeyPem: "123456",
        WXPAY_publicKeyID: "123456",
        WXPAY_publicKeyPem: "123456",
        WXPAY_APIV3_privateKey: "123456"
    }))
    或
    await weixinSDK.refreshConfig(async () => ({
        WXMP_APPID: await getAppId(),
        WXMP_APPSECRET: await getAppSecret(),
        WXPAY_MCHID: await getMchId(),
        WXPAY_mchApiCert_serialNo: await getMchApiCertSerialNo(),
        WXPAY_mchApiCert_privateKeyPem: await getMchApiCertPrivateKeyPem(),
        WXPAY_publicKeyID: await getPublicKeyID(),
        WXPAY_publicKeyPem: await getPublicKeyPem(),
        WXPAY_APIV3_privateKey: await getAPIV3PrivateKey()
    }))
}

如果您的配置是动态的,请使用以下方法,来刷新您的配置

await weixinSDK.refreshConfig();

如何使用呢?

let data = await weixinSDK.小程序.小程序登录.code2Session(js_code)

类关键字段使用中文名称, 以应对众多目录, 更方便使用, 建议配合微信文档一起食用哦