escpos-roach

1.0.1 • Public • Published

escpos-roach

To be used with Roach escpos server.

Printer(address)

const Printer = require('escpos-roach');
const printer = new Printer('http://localhost:3000'); // or whatever your Roach server is on.

printer.font('a')
	.align('ct')
	.style('bu')
	.size(0,0)
	.text('The quick brown fox jumps over the lazy dog')
	.table(["One", "Two", "Three"])
	.tableCustom(
		[
		{ text:"Left", align:"LEFT", width:0.33, style: 'B' },
		{ text:"Center", align:"CENTER", width:0.33},
		{ text:"Right", align:"RIGHT", width:0.33 }
		],
		{ encoding: 'cp857', size: [1, 1] } // Optional
	)
	.qrimage('https://github.com/song940/node-escpos').cut().close();

Readme

Keywords

none

Package Sidebar

Install

npm i escpos-roach

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

11.8 kB

Total Files

4

Last publish

Collaborators

  • raizu