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

huifu

v0.3.3

Published

汇付托管SDK

Readme

汇付天下P2P系统托管API文档

Build Status via Travis CI Coverage Status NPM version

注意:API约定

  • 所有接口调用遵循CmdId值,首字母小写,参数按照文档.其中参数Version,CmdId,MerCustId,ChkValue这四个参数不用填写
  • 所有接口调用均支持callback 和 promise

usage

var HUIFU = require('huifu');
var huifu = new HUIFU({
    merId: '', //商户号
    npcServerIp: '', //npc服务地址
    npcServerPort: '' , //npc服务端口
    merCustId: '', //汇付商户客户号
    platformUrl: '', //汇付服务器地址
    loadingHtml: '<div>loading</div>', //浏览器跳转时的提示html
    timeout: 60000, //http请求超时时间,默认60秒
    debug: true //打印函数调用的参数,默认是fasle
});

//用户开户接口
// promise
huifu.userRegister({UsrMp: '', UsrName:'', IdNo: '', BgRetUrl: '', RetUrl: '', PageType: '2'})
    .then(function (redirectUrl) {
        console.log('redirectUrl', redirectUrl)
    })
    .catch(function (error) {

    })

// callback
huifu.userRegister({UsrMp: '', UsrName:'', IdNo: '', BgRetUrl: '', RetUrl: '', PageType: '2'}, function (err, redirectUrl) {
    console.log('===========', err, redirectUrl);
});

API

用户管理类接口

交易类接口

查询类接口

其他接口

  • getConfig
  • queryRetQuota 获取终止异步回调的响应内容(参数是汇付接口返回的object)
  • reactResponse 4.2.7 异步回调验证签名的方法
  • isSuccess 判断汇付响应结果是否成功(返回boolean值)
  • log 控制台输入log接口(当且仅当实例化的参数debug:true时有效)

test

  • npm test
  • npm run cov