qrstream

0.0.2 • Public • Published

QRStream

Build Status Coverage Status

This is a Work In Progress!!! ⚠

A javascript library for transfer data using QR Code streaming

Installation

npm install qrstream

Usage

Use as npm package

  var qrstream = require('qrstream');
  var qr = qrstream(500, 640);
  qr.load("TEXT", "Hello world");
  var {meta, images} = qr.encode();

Use in browser

1 create a app.js file using qrstream

  "use strict;"
  var qrstream = require('qrstream');
  var qr = qrstream(500, 640);
  qr.load("TEXT""this is for the example");
 
  let {meta, images} = qr.encode();
  document.getElementById("metaImage").src = meta;

2 bundle the js

  browserify app.js -o you.bundle.js

3 include it in your html file

  <script type="text/javascript" src="assets/js/qrstream.bundle.js"> </script> 

Tests

npm test

Contributing

Readme

Keywords

Package Sidebar

Install

npm i qrstream

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

30 kB

Total Files

12

Last publish

Collaborators

  • huajianmao