Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
wx-channel-shop-printer
Advanced tools
Readme
视频号小店 · 电子面单打印,简单封装 API。
https://developers.weixin.qq.com/doc/channels/API/ewaybill/connect_printer.html
import { WxChannelShopPrinter } from "wx-channel-shop-printer";
const printer = new WxChannelShopPrinter();
const list = await printer.getPrinterList();
/**
* [{
* "name": "_KM_202_NEW_",
* "displayName": "KM-202(NEW)",
* "status": 3
* }]
*/
获取打印组件的版本号。
const info = await printer.getAppInfo();
/**
* {
* "version": "1.3.4"
* }
*/
发送指令给打印组件,打印对应的面单
注意:
print_info
信息const tasks = await printer.print({
version: "2.0", // 必传
taskList: [
{
printInfo: "", // String, [获取打印报文]接口返回的 print_info
printNum: {
curNum: 1, // 打印计数-当前张数
sumNum: 2, // 打印计数-总张数
},
},
],
printer: "_KM_202_NEW_", // 选中的打印机,printer.name
});
/**
* [{
* "taskID": "1234",
* "success": true,
* "failureReason": ""
* }]
*/
FAQs
视频号小店 · 电子面单打印,简单封装 API。
The npm package wx-channel-shop-printer receives a total of 0 weekly downloads. As such, wx-channel-shop-printer popularity was classified as not popular.
We found that wx-channel-shop-printer demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.