$ npm install @putout/cli-staged
Get list of staged by git files for 🐊Putout.
npm i @putout/cli-staged
import {get, set} from '@putout/cli-staged';
import {findUp} from 'find-up';
import {tryToCatch} from 'try-to-catch';
const [error, names] = await tryToCatch(get, {
findUp,
isSupported: Boolean,
});
const stagedNames = await set({
findUp,
});
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE