/gulp-csv2json

gulp plugin csv to json

Primary LanguageJavaScript

gulp-csv2json

Build Status

gulp plugin convert csv to json

Install

Install with npm

npm install --save-dev gulp-csv2json

Example

var gulp = require('gulp');
var csv2json = require('gulp-csv2json');
var rename = require('gulp-rename');

gulp.task('default', function () {

var csvParseOptions = {}; //based on options specified here : http://csv.adaltas.com/parse/

	gulp.src('src/**/*.csv')
		.pipe(csv2json(csvParseOptions))
		.pipe(rename({extname: '.json'}))
		.pipe(gulp.dest('dist'));
});

API

csv2json(option)

License

MIT @chilijung