Run a command on staged files matching a pattern
npm install staged-files> Get staged files for use in git hooks or some task runner.
From the command line (mostly useful for systems without xargs).
``console`
staged-files 'optional-pattern/**' -- optional_command
Vinyl compatible stream.
`js
var stagedFiles = require('staged-files');
stagedFiles().pipe(/.../);
``