0.2.5 • Published 9 years ago

gulp-csv2json v0.2.5

Weekly downloads
140
License
MIT
Repository
github
Last release
9 years ago

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