node-escpos icon indicating copy to clipboard operation
node-escpos copied to clipboard

v3 and WebUSB

Open yelhouti opened this issue 4 years ago • 10 comments

First of all than you for the great library and for the work done on moving require to the part where it's needed. This means that I can now, use the library inside a web site using the WebUSB API.

What I'm trying to do now, is write a WebUSB adapter, that takes as a parameter a USBDevice, and the endpoint to use to transferOut the content of the buffer to the device.

I would really appreciate some help working on this adapter, from any one with a working device that uses the vanilla USB adapter, since I don't have a thermal printer at my disposal for quick coding/testing/debugging.

yelhouti avatar Jan 28 '21 00:01 yelhouti

I have a termal printer and I can help. I'm starting to work on moving away from qz-tray that acts like a printing server to WebUSB and I was looking for a way to integrate escpos with webusb.

georgegrigorita avatar Mar 02 '21 09:03 georgegrigorita

I have it working here: https://github.com/yelhouti/escpos-webusb :D

yelhouti avatar Mar 02 '21 09:03 yelhouti

I will be happy to have my code merged here, in the meanwhile please do not squat the npm registry and leave it for the project

yelhouti avatar Mar 02 '21 09:03 yelhouti

@yelhouti how about this library? Do you have the amd version? I mean i can only print text using webusb, i want styling like image, barcode etc without learning the command in hexa or byte format

globaltechnology-id avatar Apr 01 '21 11:04 globaltechnology-id

what do you mean by how about "THIS" library ? my lib is an "extention" of THIS one

yelhouti avatar Apr 01 '21 11:04 yelhouti

I dont know much about javascript, i mean the amd?commonjs? Or whatever it called, so i can add the js file in my laravel project and include it in the blade file.

globaltechnology-id avatar Apr 01 '21 13:04 globaltechnology-id

can you send this as a package inside this repo?

sibelius avatar Aug 19 '22 20:08 sibelius

Hey, pretty late to the party but anyone who wants a working package with WebUSB support should consider using 'escpos-buffer' https://github.com/grandchef/escpos-buffer

ferminc avatar Aug 29 '22 12:08 ferminc

is this package the same as this one? or another implementation?

sibelius avatar Aug 29 '22 12:08 sibelius

is this package the same as this one? or another implementation?

It works independently

ferminc avatar Aug 29 '22 14:08 ferminc