GithubHelp home page GithubHelp logo

englishextra / qrjs2 Goto Github PK

View Code? Open in Web Editor NEW
75.0 6.0 12.0 1.22 MB

QR code generating with vanilla js (SVG Element, Data URI SVG String, Data URI PNG String, HTML Table Element).

Home Page: https://codepen.io/englishextra/pen/NpwjKW

License: MIT License

JavaScript 89.08% HTML 10.87% Batchfile 0.05%
qr qrcode qr-code qrcode-generator svg svg-images js javascript vanilla-js webapp

qrjs2's People

Contributors

alditis avatar codacy-badger avatar englishextra avatar georgewl avatar lukasdrgon avatar vincentroth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

qrjs2's Issues

[bug/question] Uncaught ReferenceError: nw is not defined

Checklist

  • My browser is: Chromium Version 89.0.4389.114
  • I'm using version 0.1.8

Description

I bundle my project using webpack 5.
So for using the package from within my code I would go for:

var qrGenerator = require("qr2js")
import qrGenerator from "qrjs2"

Expected behavior

Having the Module available as qrGenerator in my code such that I could use it like

var qrSvg = qrGenerator.generateSVG(information, options)

Actual behavior

Instant error when loading.

Uncaught ReferenceError: nw is not defined
    at eval (main.js:6)
    at Object../node_modules/qrjs2/main.js ((index):1781)
    at __webpack_require__ ((index):2300)
    at eval (qrdisplaymodule.js:2)
    at Module../toolset/build/js/qrdisplaymodule.js ((index):2126)
    at __webpack_require__ ((index):2300)
    at eval (allmodules.js:37)
    at Module../toolset/build/js/allmodules.js ((index):1942)
    at __webpack_require__ ((index):2300)
    at eval (index.js:2)

I'm sure it's specifically a bundling issue there.
Maybe there is a quick fix to have this awesome package bundleable this way :-)

Cheers!

Upercasing first letter and numeric data issues

  • My browser is: Chrome, Microsoft Edge (Mac) and Safari

  • I'm using version [v0.1.11]

  • I am sure this issue is not a duplicate? Yes

Description

I am not sure what is going on, but I am trying to incorporate this into my project in order to generate QR codes to print on labels using a product SKU (alphanumeric/symbols) and a barcode number. I found that I had to convert the barcode number into a string for it to work, otherwise it complained: Uncaught too large data @ qrjs2.js:803. I don't know if this is normal or if I am just not specifying something properly.

I didn't know QR could not encode lowercase letters, so that is an issue we have to work through. :)

Are there some options I am not passing in? I am using very basics from the sample:

{ ecclevel: "M", fillcolor: "#FFFFFF", textcolor: "#000000", margin: 4, modulesize: 8 }

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.