This plugin allows easy access to a barcode scanner functionality on mobile apps.
It uses the cordova plugin phonegap-plugin-barcodescanner under the hood, which has excellent support for different barcode and qr code formats.