staged-files

Run a command on staged files matching a pattern

MIT 3 个版本
安装
npm install staged-files
yarn add staged-files
pnpm add staged-files
bun add staged-files
README

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(/*...*/);
版本列表
0.1.2 2015-11-24
0.1.1 2015-11-24
0.1.0 2015-11-24