Skip to content

Buffer is deprecated in qr-image #98

@shinnlu

Description

@shinnlu

there is a error with Buffer is not defined
image

even i don't use qrimage in code.

	import escpos from 'escpos';
	const device  = new escpos.Network(MachineSetting.PrinterIP);
	const printer = new escpos.Printer(device, options);

	function printTest()
	{
		device.open(function(err){
			printer
			.font('a')
			.align("STAR_CA")
			.style('bu')
			.size(1, 1)
			.emphasize()
			.text('The quick brown fox jumps over the lazy dog')
			.cancelEmphasize()
			.align("STAR_LA")
			.text('敏捷的棕色狐狸跳过懒狗')
			.align("STAR_RA");
		});
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions