Skip to content

OmarCastro/its-a-qrcode

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

About

It's a QR code element

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages