
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
fanqier-wxredpack
Advanced tools
微信发企业红包 for node.js
npm install fanqier-wxredpack
先创建一个红包实例 Redpack,再调用 send() 发送红包,减少每次发红包的参数。
var Redpack = require('fanqier-wxredpack').Redpack;
var redpack = Redpack({
mch_id: 'xxx',
partner_key: 'xxxxxx',
pfx: fs.readFileSync('./wxpay_cert.p12'),
wxappid: 'wxxxxxxx'
});
//发红包
redpack.send({
mch_billno: '123426900220150325'+Math.random().toString().substr(2,10),
send_name: '红包来自',
wishing: '收好不谢!',
re_openid: '红包接收人openid',
total_amount: 100,
total_num: 1,
client_ip: '14.23.102.146',
nick_name: 'XXXX',
act_name: '发测试红包',
remark: 'remark'
})
.then(function(res){
console.log(res)
})
.catch(function(err){
console.log(err)
});
查询红包记录
redpack
.check({
mch_billno: '1357035902201622191047290884',
bill_type:'MCHT',
})
.then(function(res) {
console.log(res)
process.exit();
}, function(err) {
console.log(err)
process.exit();
});
FAQs
微信发企业红包 for node.js
We found that fanqier-wxredpack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.