Skip to content

sanchezand/escpos-roach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

Roach node module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published