@fluidnotions/escpos-print-extended
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.7 • Public • Published

    ESC/POS library

    Versions

    • clone of escpos-print-extended which was a clone of escpos-print
    • updated deps to work with node v12.6

    Features:

    • Adapters for Network, Serial, and Console (for debugging)
    • Usual text stuff (Bold, Underline, Justification etc.)
    • PNG images
    • Bar code printing (Regular, QR, PDF417)

    Usage example:

    import Printer from '@fluidnotions/escpos-print-extended/Printer'
    import { Font, Justification, TextMode } from '@fluidnotions/escpos-print-extended/Commands'
    import { Network } from '@fluidnotions/escpos-print-extended/Adapters'
     
    const adapter = new Network("192.168.0.102", 9100)
    const printer = await new Printer(adapter).open()
                               
    printer.setFont(Font.A)
           .setJustification(Justification.Center)
           .setTextMode(TextMode.DualWidthAndHeight)
           .writeLine("This is some large centered text")
           .setTextMode(TextMode.Normal)
           .setJustification(Justification.Left)
           .writeLine("Some normal text")
           .feed(4)
           .close()
           .then(() => console.log("Done printing..."))

    Install

    npm i @fluidnotions/escpos-print-extended

    DownloadsWeekly Downloads

    5

    Version

    2.0.7

    License

    MIT

    Unpacked Size

    42.8 kB

    Total Files

    29

    Last publish

    Collaborators

    • avatar