instascan-umd
v1.0.1
Published
A UMD compatible port of Instascan
Downloads
34
Readme
Instascan UMD
A pre-compiled, minified version of Instascan!
This port was made to be compatible with module bundlers like Webpack
Installing:
With npm:
npm install instascan-umd --save
With yarn:
yarn add instascan
Using:
Just use as you do with istascan:
With ES imports:
import Instascan, {Scanner, Camera} from "instascan-umd";
With CommonsJS:
const {Scanner, Camera} = require("instascan-umd");
Or directly in the browser:
window.instascan.Scanner;
window.instascan.Camera;
License
This port is under the MIT license