0.3.1 • Published 12 months ago

qqprinter v0.3.1

Weekly downloads
1
License
GPL2.0
Repository
github
Last release
12 months ago

qqprinter

A nodejs package for printing labels under Windows framework net4.0

@Authour Yang Zhou

@Mail zhouyang@datahub.top

Summary

What

  • qqprinter is a js wrapper for label printer operations such as getting printer names, setting default printer, and printing some contents discripted with JSON format.

  • qqprinter is able to print text, tables, images and QRcodes.

Why

  • With the developing of our ERP system, it's important access printers directly from js under the framework of NW.js. However there's not a proper library yet, so a simple but enough wrapper is written.

How

  • A full functional binary is preprared with c#.net4.0 named as labelPrinter.exe. This binary could be used with command-line operations. With the help of childprocess module of nodejs we provide you a js wrapper called labelPrinter.js.

Usage

Install

you can simply install the module by

npm install qqprinter --save

Examples can be found in test_get_availabel.js and test_labelPrinter.js.

  • get_available can let you know what printers are available on this computer.

  • labelPrinter let print some labels using js.

Enjoy!

0.3.1

12 months ago

0.1.0

7 years ago

0.0.2

7 years ago