JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3412
  • Score
    100M100P100Q123928F
  • License MIT

Register every filename that has passed through

Package Exports

  • gulp-filenames

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-filenames) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

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

License

MIT License