gulp-filenames
Register every filename that has passed through
Last updated 4 years ago by johnydays .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-filenames 
SYNC missed versions from official npm registry.

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

Current Tags

  • 4.0.1                                ...           latest (4 years ago)

11 Versions

  • 4.0.1                                ...           4 years ago
  • 3.8.5                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.0                                ...           5 years ago
  • 1.3.0                                ...           5 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 3
This Week 3
This Month 10
Last Day 0
Last Week 1
Last Month 24
Dependencies (2)
Dev Dependencies (7)

Copyright 2014 - 2017 © taobao.org |