November's Paddleball Marathon
Publish your own packages to the world's most popular software ecosystem with npm Pro.Get started »

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

Install

npm i gulp-files-to-json

DownloadsWeekly Downloads

262

Version

0.2.1

License

MIT

Last publish

Collaborators

  • avatar