staged-files

0.1.2 • Public • Published

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 stagedFiles = require('staged-files');

stagedFiles().pipe(/*...*/);

/staged-files/

    Package Sidebar

    Install

    npm i staged-files

    Weekly Downloads

    258

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • jpommerening