Skip to content

jpommerening/staged-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

staged-files

Get staged files for use in git hooks or some task runner.

API

From the command line (mostly useful for systems without xargs).

staged-files 'optional-pattern/**' -- optional_command

Vinyl compatible stream.

var fs = require('vinyl-fs');
var stagedFiles = require('staged-files');

stagedFiles()
  .pipe(fs.src(['**/*.js'], { passthrough: true }))
  .pipe(fs.dest('./output'));

About

Run a command on staged files matching a pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published