git-pr-diff-parser

0.2.1 • Public • Published

git-pr-diff

A git pull request diff parser. It's just a wrapper for the diff-parser module, so it'll work well with git.

API

Parser

require('git-pr-diff')(cwd: string, oldBranch: string, newBranch: string)

Parameters:

  • cwd: Path of the local git repo
  • oldBranch: The branch to merge into
  • newBranch: The branch to merge from

Example

const parsedDiff = require('git-pr-diff')('/Users/me/Projects/thisProj', 'origin/master', 'origin/another-branch');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    88
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    88
  • 0.2.0
    2
  • 0.1.0
    2

Package Sidebar

Install

npm i git-pr-diff-parser

Weekly Downloads

4

Version

0.2.1

License

MIT

Unpacked Size

43.3 kB

Total Files

8

Last publish

Collaborators

  • doriitamar