git-changes-affected
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.2 • Public • Published

git-changes-affected

Find git changes affected files

Quick start

Intalling via npm:

npm i git-changes-affected

Fnd what modules your last commit change affects by:

const gitChangesAffected = require('git-changes-affected');
gitChangesAffected();

Find impact of changes by certain commit:

gitChangesAffected({
  to: '59037780a46c5000830a7a6705ebfa82d5a30095'
});

Find impact of changes between 2 revisions:

gitChangesAffected({
  to: '59037780a46c5000830a7a6705ebfa82d5a30095',
  from: '8e0d337483f9c9db07deeb2d82d7a8b3f8515423'
});

If your repo uses special supports like JSX, flow, typescript, etc., you will need to enable @babel/parser plugins as following:

gitChangesAffected({
  parserOptions: {
    plugins: ['jsx', 'typescript']
  }
});

Package Sidebar

Install

npm i git-changes-affected

Weekly Downloads

1

Version

1.0.0-alpha.2

License

MIT

Unpacked Size

24.7 kB

Total Files

30

Last publish

Collaborators

  • jennieji