source/Barcode.js
function unify(options) {
	const map = {
		height: 'barHeight',
		background: 'bgColor',
		text: 'showHRI'
	};

	return Object.keys(options).reduce(
		(carry, key) => ({
			...carry,
			[key in map ? map[key] : key]: options[key]
		}),
		{}
	);
}
function unify(options) {
	const map = {
		height: 'barHeight',
		background: 'bgColor',
		text: 'showHRI'
	};

	return Object.keys(options).reduce(
		(carry, key) => ({
			...carry,
			[key in map ? map[key] : key]: options[key]
		}),
		{}
	);
}
function unify ( options ) { const map = { height : 'barHeight' , background : 'bgColor' , text : 'showHRI' } ; return Object . keys ( options ) . reduce ( ( carry , key ) => ( { ... carry , [ key in map ? map [ key ] : key ] : options [ key ] } ) , { } ) ; }
Unify the parameters for the barcode plugin

@param   {object} options
@returns {object} options
Unify the parameters for the barcode plugin