gulp-filenames-to-json
v0.1.2
Published
Simple gulp plugin that creates a JSON file containing the relative filenames of all piped files as an array.
Downloads
461
Readme
gulp-filenames-to-json
Simple gulp plugin that creates a JSON file containing the relative filenames of all piped files as an array.
Install
$ npm install --save-dev gulp-filenames-to-json
Usage
var gulp = require('gulp');
var filenamesToJson = require('gulp-filenames-to-json');
gulp.task('default', function () {
return gulp.src('src/file.ext')
.pipe(filenamesToJson())
.pipe(gulp.dest('.'));
});
API
filenamesToJson(options)
options
fileName
Type: string
Default: files.json
The file name of the generated JSON document.
License
MIT © Oliver Lohmann