gulp plugin csv to json
JavaScript
Switch branches/tags
Nothing to show
Latest commit 4efda99 Sep 22, 2015 @chilijung bump
Permalink
Failed to load latest commit information.
dist init Feb 13, 2014
sample init Feb 13, 2014
.gitignore init Feb 13, 2014
.travis.yml add travis Feb 17, 2014
README.md Update README.md Jul 8, 2015
gulpfile.js fix output Feb 22, 2014
index.js Fix bug with handling multiple files Sep 3, 2015
package.json bump Sep 22, 2015
test.js add test Feb 17, 2014

README.md

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