Skip to content

convert list of file paths in current stream to a json file

Notifications You must be signed in to change notification settings

polst/gulp-filelist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-filelist

NPM Version NPM Downloads Node.js Version Build Status Coverage Status Gittip

Convert list of file paths in current stream to a JSON file.

Add it to your gulp file:

gulp
  .src(['awesome.file', 'lame.file'])
  .pipe(require('gulp-filelist')('filelist.json'))
  .pipe(gulp.dest('out'))

Outputs out/filelist.json:

[
  "out/awesome.file",
  "out/lame.file"
]

Installation

$ npm install gulp-filelist

Options

Absolute Paths: { absolute: true }

gulp
  .src(['awesome.file', 'lame.file'])
  .pipe(require('gulp-filelist')('filelist.json', { absolute: true }))
  .pipe(gulp.dest('out'))

Outputs:

[
  "/Users/chris/my-project/out/awesome.file",
  "/Users/chris/my-project/out/lame.file"
]

About

convert list of file paths in current stream to a json file

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%