gf

gulp-filenames

Filename gathering plugin for gulp

Showing:

Popularity

Downloads/wk

1.2K

GitHub Stars

11

Maintenance

Last Commit

5yrs ago

Contributors

3

Package

Dependencies

2

Size (min+gzip)

28.0KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gulp-filenames

NPM version Build Status Coverage Status Dependency Status

Filename gathering plugin for gulp

Usage

First, install gulp-filenames as a development dependency:

npm install --save-dev gulp-filenames

Then, add it to your gulpfile.js:

var filenames = require("gulp-filenames");

gulp.src("./src/*.coffee")
    .pipe(filenames("coffeescript"))
    .pipe(gulp.dest("./dist"));

gulp.src("./src/*.js")
  .pipe(filenames("javascript"))
  .pipe(gulp.dest("./dist"));

filenames.get("coffeescript") // ["a.coffee","b.coffee"]
                              // Do Something With it

API

filenames([name], [options])

name

Namespace the filenames. Do not use the name "all" which is reserved by gulp-filenames to retrieve all namespaces.

options

overrideMode (default: false)

override previous files when a new one passes through

filenames.get([name], [what])

name

Get only these filenames ("all" to get everything)

what

"relative" or "full" or "base" for an array of filenames

"all" for an array of objects

filenames.forget(name)

name

Forget the filenames stored in namespace "name" ("all" to forget all files). gulp-filenames does not clear a namespace between runs by design.

License

MIT License

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial