next() Packaged Middleware
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    gulp-funnelpublic

    gulp-funnel

    Join stream of files into an array, useful making e.g. list of files processed

    Motivation

    Example, render a list of blog posts, using index.html as template

    var funnel = require('gulp-funnel');
    gulp.task('index', function() {
      gulp.src('./posts/*.md')
        .pipe(frontMatter(fmOpts))
        .pipe(funnel())
        .pipe(nunjucks({defaultTemplate: 'index'}))
    });

    Options

    destination

    Destination filename, index.html by default

    property

    Destination property of the File, where to store the list of files. 'files' by default.

    sort

    Sort filelist, -1 for sorting descending, 1 ascending.

    License

    MIT © Mikko Lehtinen

    install

    npm i gulp-funnel

    Downloadsweekly downloads

    3

    version

    0.1.1

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar