0.1.2 • Published 9 years ago

gulp-filenames-to-json v0.1.2

Weekly downloads
223
License
MIT
Repository
github
Last release
9 years ago

gulp-filenames-to-json Build Status

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