This port was made to be compatible with module bundlers like Webpack
With npm:
npm install instascan-umd --save
With yarn:
yarn add instascan
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;
This port is under the MIT license