0.0.2 • Published 8 years ago

gulp-each-row v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

gulp-each-row

Usage

var gulp = require('gulp');
var eachRow = require('gulp-each-row');

gulp.task('default', function () {
	
	var process = function (row) {
		return {
			'uid': row.id + 100,
			'title': row.title.toUpperCase(),
			'content': row.bodyText
		};
	};
	
	return gulp
		.src('data.json')
		.pipe(eachRow(process))
		.pipe(gulp.dest('dist'));
});

Note: The gulp source must be a JSON array