gulp-csv2json
v0.2.5
Published
csv to json using gulp
Downloads
1,863
Readme
gulp-csv2json
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