Coder Social home page Coder Social logo

Comments (3)

NielsLeenheer avatar NielsLeenheer commented on July 22, 2024 2

EscPosEncoder 2 has been released. Like I mentioned above, it contains bundled versions for use in the browser. The documentation has been updated.

For how to actually use this in the browser, including connecting and sending the data to the printer, you can look at these libraries:
https://github.com/NielsLeenheer/WebUSBReceiptPrinter
https://github.com/NielsLeenheer/WebBluetoothReceiptPrinter
https://github.com/NielsLeenheer/WebSerialReceiptPrinter

from escposencoder.

NielsLeenheer avatar NielsLeenheer commented on July 22, 2024 1

In the dist directory there is a file called esc-pos-encoder.js which can be loaded using a script tag in the browser. I've updated the documentation to reflect this. This is no es module yet, but I am working on that.

from escposencoder.

charliegerard avatar charliegerard commented on July 22, 2024

Hey @noviardi1986, if you're still looking for this, I just worked on adapting Niels' module so you can just use it as a script tag. Here's the repo if you're interested 🙂

from escposencoder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.