0.4.0 • Published 5 years ago

ember-qrcode-shim v0.4.0

Weekly downloads
1,854
License
MIT
Repository
github
Last release
5 years ago

Ember-qrcode-shim

An ember wrapper of qrcode.js, a tool to generate QR Code on client side. NPM

Installation

  • ember install ember-qrcode-shim

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

Usage

As qr-code Component

Example

{{qr-code text="http://www.example.com" colorLight="#F7F7F7" width=155 height=155 correctLevel="L"}}

Config arguments provided by qrcode.js are also provided as component attributes with same key names. They are

  • text - the target text that the QR code represents for
  • width - the QR image width
  • height - the QR image height
  • colorDark - color of dark blocks
  • colorLight - color of light background
  • correctLevel - L | M | Q | H

As ES6 module

You can also import qrcode.js as an ES6 module, so that you can have full control of rendering the QR Code as you wish.

import QRCode from 'qrcode';
...

This project is licensed under the MIT License.

0.4.0

5 years ago

0.3.0

6 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.13-a

7 years ago

0.0.12-a

7 years ago

0.0.10-a

7 years ago

0.0.9-a

7 years ago

0.0.8-a

7 years ago

0.0.7-a

7 years ago

0.0.6-a

7 years ago

0.0.5-a

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago