You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application.
Installation is done via the Cordova CLI.
Install BarcodeScanner using the latest version from GitHub:
$ cordova plugin add https://github.com/wildabeast/BarcodeScanner.git
- BlackBerry 10
- Fire OS
- Firefox OS
- Windows 8
- Windows Phone 7
- Windows Phone 8