gulp-files-to-json
v0.2.1
Published
*A really shitty gulp plugin to read a bunch of files and output a json file.*
Downloads
1,123
Readme
gulp-files-to-json
A really shitty gulp plugin to read a bunch of files and output a json file.
Usage:
var f2Json = require('gulp-files-to-json');
f2Json(<nameOfFileToOutput.json>)
Example:
var filesToJson = require('gulp-files-to-json');
gulp.task('svg', function() {
gulp.src('./svg/**/*.svg')
.pipe(svgmin())
.pipe(filesToJson('icons.json'))
.pipe(gulp.dest('./src/services/'));
});