its-a-qrcode

0.5.0 • Public • Published

It's a QR Code

npm version latest version License Continuous Integration Test Report Test Coverage Report

"It's a QR Code" is a web component that shows its text content as QR code image

Getting started

CDN

To use a CDN all you need is to add the following code in the HTML page:

<script type="module" src="https://cdn.jsdelivr.net/gh/OmarCastro/its-a-qrcode/dist/qrcode.element.min.js?named=qr-code"></script>

The query string named automatically registers the component with the value defined

NPM

If you wish to import from npm and use a bundler, you can install the its-a-qrcode package

npm install its-a-qrcode

Not all bundlers support query strings, it is recommended to import and register the component, like the following code:

import element from 'its-a-qrcode'
customElements.define('qr-code', element)

Documentation

full documentation on: https://omarcastro.github.io/its-a-qrcode

Readme

Keywords

none

Package Sidebar

Install

npm i its-a-qrcode

Weekly Downloads

2

Version

0.5.0

License

MIT

Unpacked Size

492 kB

Total Files

79

Last publish

Collaborators

  • omarcastro