Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-csv2json

DataGarage1.8kMIT0.2.5

csv to json using gulp

gulp, gulpplugin, csv, json

readme

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