
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@neuroo_fe/wechat-user-iterator
Advanced tools
微信信息列表迭代器。
npm i @neuroo_fe/wechat-user-iterator -S
const UserIterator = require('@neuroo_fe/wechat-user-iterator')
const iterator = new UserIterator({
appId: '',
appSecret: ''
})
iterator
.on('user', console.log)
.on('error', console.error)
.on('finish', console.log)
.start()
new UserIterator(options)
返回UserIterator
实例对象。
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
appId | String | 特殊可选 | 微信公众号appId |
appSecret | String | 特殊可选 | 微信公众号appSecret |
getToken | Function | 特殊可选 | 获取access_token函数。 当使用此参数时,可省略 appId 和appSecret 。详情见wechat-api 多进程 |
concurrent | Number | 否 | 并发数。默认为1 |
开始迭代用户信息列表,会多次触发user
事件。完成时会触发finish
事件。
暂停迭代。
恢复迭代。
获取到单个用户信息时触发user
事件
名称 | 类型 | 描述 |
---|---|---|
current | Number | 当前用户的下标。 |
total | Number | 所有用户的数量。 |
user | Object | 用户信息对象。 |
获取到多个用户信息时触发users
事件
名称 | 类型 | 描述 |
---|---|---|
current | Number | 当前用户的下标。 |
total | Number | 所有用户的数量。 |
users | Array | 多个用户信息对象数组。 |
完成迭代时触发。
名称 | 类型 | 描述 |
---|---|---|
total | Number | 所有用户的数量。 |
startTime | String | 开始时间。 |
endTime | String | 结束时间。 |
获取信息出错时触发error
事件。参数为Error
实例对象。
FAQs
The npm package @neuroo_fe/wechat-user-iterator receives a total of 3 weekly downloads. As such, @neuroo_fe/wechat-user-iterator popularity was classified as not popular.
We found that @neuroo_fe/wechat-user-iterator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.