Angular2+ SPA に JavaScript 実装の QR コード読み取り機能を搭載するにあたり、既存の JavaScript ライブラリを選定した結果発表JavaScriptTypeScriptQRcode 現在開発中の Angular2+ SPA プロジェクト ( モジュールバンドラーは webpack を採用 ) に、デバイスのカメラを使って QR コードを読み取る機能を搭載することとなりました。 そこで、QR コードを検出・読み取りする JavaScript 実装のライブラリを選定することとしました。 結論: jsQR https://www.npmjs.com/package/jsqr ( GitHub ) Apache-2.0 イメージを渡すと、そのイメージ内の QR コードを検出・読み取って返すのみに特化されているライブラリです。 カメラや video 要素の制御につ