Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@liquid-js/qrcode-generator

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liquid-js/qrcode-generator

QR Code Generator implementation in JavaScript.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
increased by189.47%
Maintainers
0
Weekly downloads
 
Created
Source

QR Code Generator

Version

JavaScript library for generating QR codes.

Installation

npm install @liquid-js/qrcode-generator

API Documentation

https://liquid-js.github.io/qrcode-generator/

Usage

Browser

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>QR Code Generator</title>
  </head>
  <body>
    <div id="placeHolder"></div>
    <script type="module">
      import { QRCode } from "https://unpkg.com/@liquid-js/qrcode-generator/lib/qr-code.js";

      const typeNumber = 4;
      const errorCorrectionLevel = "L";
      const qr = new QRCode(typeNumber, errorCorrectionLevel);
      qr.addData("Hi!");
      qr.make();
      document.getElementById("placeHolder").innerHTML = qr.createImgTag();
    </script>
  </body>
</html>

Node

import { QRCode } from "@liquid-js/qrcode-generator";

const typeNumber = 4;
const errorCorrectionLevel = "L";
const qr = new QRCode(typeNumber, errorCorrectionLevel);
qr.addData("Hi!");
qr.make();

console.log(qr.createASCII());

License

MIT License


This implementation is based on JIS X 0510:1999.

The word 'QR Code' is registered trademark of DENSO WAVE INCORPORATED
http://www.denso-wave.com/qrcode/faqpatent-e.html

Keywords

FAQs

Package last updated on 05 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc