🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

gulp-filenames

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-filenames

Register every filename that has passed through

4.0.1
latest
Source
npm
Version published
Weekly downloads
2.4K
-30.75%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

gulpplugin

FAQs

Package last updated on 24 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts