gulp-files-to-json

0.2.1 • Public • Published

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/'));
});

Readme

Keywords

Package Sidebar

Install

npm i gulp-files-to-json

Weekly Downloads

237

Version

0.2.1

License

MIT

Last publish

Collaborators

  • iest