qrstream
v0.0.2
Published
A javascript library for transfer data using QR Code streaming
Downloads
5
Readme
QRStream
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