gulp-csvtojson
gulp plugin to wrap csvtojson
Install
$ npm install --save-dev gulp-csvtojson
Usage
Here is the code snippet for general usage which generate json for you.
var gulp = ;var csvtojson = ; gulp;
Here is the code snippet for generating js file.
var gulp = ;var csvtojson = ;var insert = ;var ext_replace = ; gulp;
Options
Refer to this list for full options.
Note: to get a valid json file, you need set toArrayString
to true
.
API
Since v0.2.0, API no longer supported, to achieve the same result, please adapt your code according to the second code snippet.
License
MIT © Icer