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

wx_jsapi_redis

v3.0.1

Published

wxapi redis

Readme

微信js redis版 1、npm install wx_jsapi_redis(单微信可以安装2.0.11版,多微信版安装3.0以后版本,多微信版兼容单微信版) 2、require("wx_jsapi_redis")({redis:{},wx:{}}) wx:{前缀:{app_id:"",app_secret:""}},此处的前缀和redis中的前缀一致,否则无法正常使用。例如WxShop_jsapi_ticket,前缀为WxShop_ 3、redis:{RDS_PORT:6379,RDS_HOST :'61.147..',RDS_AUTH:{}} redis中的结构:{"WxShop_jsapi_ticket":{jsapi_ticket:"",expire_time:10位时间戳},"WxShop_access_token":access_token:"",expire_time:10位时间戳} 调用方式3.0: var wxjs = require("wx_jsapi_redis")({redis:{},wx:{}})

1.模版消息推送 wxjs.sendWxMessages(prefix,templateid,Data,touser,jumpurl) prefix:前缀,如"WxShop_",默认为"WxShop_" templateid:模版id Data:模版内容(含参数) touser:目标用户openid jumpurl:推送后的跳转链接

2.获取用户信息(微信开放的信息) wxjs.getUserInfo(OpenID,prefix) OpenId:用户openid prefix:前缀

3.获取签名,并更新redis getSignature(prefix)

4.获取access_token,并更新redis getAccessToken(prefix)