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

@qians/gen_header

v1.0.6

Published

author: wenjingQ

Readme

GenHeader WASM

author: wenjingQ

date: 2022/11/03

version: v1.0.6

API

get_open_body_sig

获取post请求接口的签名内容

  • 请求参数

    • app_id: 产品ID,由银联商务方提供
    • app_key: 产品密钥,由银联商务方提供
    • body: 报文体内容

    示例:

    app_id = "8a81c1be831e62880183c6537f4d1bc8"
    app_key = "31cce8efd439471b9badc07468137224"
    body = "{\"merchantCode\":\"89835015331APRX\",\"terminalCode\":\"RFV4N2R2\",}"
  • 返回值

    • header: 签名内容

    示例:

    OPEN-BODY-SIG AppId="8a81c1be831e62880183c6537f4d1bc8", Timestamp="20221111174544", Nonce="f937068bb74d4205bfc11a12c2056056", Signature="3ntHcocbSpfgX44zX2JcIkTcRvCvsVYmDiAfGp5FRB4="

get_open_form_param

获取get请求接口的签名内容

  • 请求参数

    • app_id: 产品ID,由银联商务方提供
    • app_key: 产品密钥,由银联商务方提供
    • timestamp: 时间戳
    • nonce: 随机数
    • body: 报文体内容

    示例:

    appId = "10037e6f66f2d0f901672aa27d690006"
    app_key = "47ace12ae3b348fe93ab46cee97c6fde"
    timestamp = "20221111173818"
    nonce = "b3198cf680684a0d91713f3cbd05e53b"
    body = "{\"attachedData\":\"测试\",\"instMid\":\"YUEDANDEFAULT\",\"merOrderId\":\"101720221111182712\",\"mid\":\"898340149000005\",\"notifyUrl\":\"http://1.117.41.70:9003/ums/cb/notifyUrl\",\"orderDesc\":\"测试\",\"originalAmount\":1,\"platformAmount\":1,\"requestTimestamp\":\"2022-11-11 173818\",\"srcReserve\":\"111\",\"tid\":\"88880001\",\"totalAmount\":1}"
  • 返回值

    • header: 签名内容

    示例:

    OPEN-FORM-PARAM&appId=10037e6f66f2d0f901672aa27d690006&timestamp=20221111173818&nonce=b3198cf680684a0d91713f3cbd05e53b&content=%7B%22attachedData%22%3A%22%E6%B5%8B%E8%AF%95%22%2C%22instMid%22%3A%22YUEDANDEFAULT%22%2C%22merOrderId%22%3A%22101720221111182712%22%2C%22mid%22%3A%22898340149000005%22%2C%22notifyUrl%22%3A%22http%3A%2F%2F1.117.41.70%3A9003%2Fums%2Fcb%2FnotifyUrl%22%2C%22orderDesc%22%3A%22%E6%B5%8B%E8%AF%95%22%2C%22originalAmount%22%3A1%2C%22platformAmount%22%3A1%2C%22requestTimestamp%22%3A%222022-11-11%20173818%22%2C%22srcReserve%22%3A%22111%22%2C%22tid%22%3A%2288880001%22%2C%22totalAmount%22%3A1%7D&signature=DnsL%2BrcUdf6Lp8FARR9aS1JpjyDRs%2Bmg3LYZks%2FgqWw%3D