Git Product home page Git Product logo

Comments (3)

CorentinTh avatar CorentinTh commented on May 12, 2024

Hi @ruggi99
Thank you for the suggestion!

What would the benefits of using @qrcode-js/qrcode instead of qrcode ? Does it have more interesting features ?

from it-tools.

TCB13 avatar TCB13 commented on May 12, 2024

I would rather see https://github.com/nuintun/qrcode because it also had the ability to decode QR codes and that would be a very nice feature!

from it-tools.

ruggi99 avatar ruggi99 commented on May 12, 2024

Hi @CorentinTh ,
sorry for being late and Happy Easter.

I think it has the same features like qrcode but you can personalize the output of the canvas like you want.
You can style it like Telegram or Instagram via a property or you can style on your own via a function.
For example: Do you want your dots being a triangle instead? Then write a function (in Javascript) that draws a triangle on the canvas.

Also my project is a monorepo that provides a core library and wrappers around it for NodeJs and browser.
So if someone wants to use it only on browser than it would not have to download node-canvas (as a dependency) that it weights around 250 MB if I remember correctly (that was a problem I was facing in a old project and that's why I wrote the monorepo).
Also my library should work with Vanilla JS and all framework out there, even Vue.js.

As pointed out my library does not decode qrcodes and I have no plan to support it because I strongly think that encoding and decoding qrcodes are separate functions that share almost no code between them.

I have a PR pending wrapping fastify and docker around the core library to create a server serving qrcodes.

from it-tools.

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.