escpos-printer-toolkit-mirfalahtech

    1.0.8 • Public • Published

    escpos-printer-toolkit

    A printer command toolkit for translate text to ESC/POS command.

    e.g. Text "这是一段打印测试文字"

    will be translate to esc/pos command with the text align center.

    Installation

    npm install escpos-printer-toolkit --save
    

    Usage

    import EPToolkit from 'escpos-printer-toolkit';
    let options = {
      beep: true, 
      cut: true, 
      tailingLine: true,
      encoding: 'GBK'
    }
    EPToolkit.exchange_text("<C>这是一段打印测试文字</C>", options)
     

    Install

    npm i escpos-printer-toolkit-mirfalahtech

    DownloadsWeekly Downloads

    3

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    14.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar