gulp-csv2json

0.2.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-csv2json

Weekly Downloads

397

Version

0.2.5

License

MIT

Last publish

Collaborators

  • chilijung