'use strict';

module.exports = function () {
	this.plugin('plugTwo', {every: 0}, function * (arr, o) {
		for (let file of arr) {
			file.data = new Buffer(file.data.toString().split('').reverse().join(''));
		}
	});
};

'use strict';

module.exports = {
	every: 0,
	name: 'plugTwo',
	*func(arr, o) {
		for (let file of arr) {
			file.data = new Buffer(file.data.toString().split('').reverse().join(''));
		}
	}
};

convert a plugin fixture to object exports