1.0.0 • Published 1 year ago

cordova-plugin-sunmi-printer v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

cordova-plugin-sunmi-printer

cordova-plugin-sunmi-printer

安装使用

Install node_modules:

npm i cordova-plugin-sunmi-printer

发布

//项目启动时初始化

SunMiPrinter.init();

SunMiPrinter.printText(JSON.stringify([
    {
        font: 40,
        bold: true,
        underLine: false,
        text: "标题"
    },
    {
        font: 36,
        bold: false,
        underLine: false,
        text: "附标题"
    },
    {
        font: 30,
        bold: false,
        underLine: false,
        text: "打印内容1"
    },
    {
        font: 30,
        bold: false,
        underLine: false,
        text: "打印内容2"
    }
]));