gulp-csv-to-json-array

1.0.4 • Public • Published

gulp-csv-to-json-array

A gulp plugin for transforming CSV files to JSON 2D arrays

Syntax

csvParser([options])

Usage

csvParser = require('gulp-csv-to-json-array');

gulp.src(['./assets/**/*.csv'])
	.pipe(csvParser({
		dynamicTyping: true,
		skipEmptyLines: true
	}))
	.pipe(gulp.dest("./dist"));

By default the following CSV:

a,b,c,d
1,2,3,4

Will generate a 2D array:

[
	["a", "b", "c", "d"],
	[1, 2, 3, 4]
]

Options documentation

Notes

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-csv-to-json-array

Weekly Downloads

1

Version

1.0.4

License

ISC

Last publish

Collaborators

  • thodic