git-file-patch-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

git-file-patch-parser

Parse a file's patch which is returned from github's pull request api.

Installation

npm install git-file-patch-parser --save

Usage

const parseFilePatch = require('git-file-patch-parser');
 
async function fn() {
  const reponse = octokit.pulls.listFiles(/* args here */);
  reponse.data.forEach(file => {
    console.log(file.filename, parseFilePatch(file.patch));
  });
}

Readme

Keywords

none

Package Sidebar

Install

npm i git-file-patch-parser

Weekly Downloads

33

Version

1.0.0

License

ISC

Unpacked Size

9.81 kB

Total Files

9

Last publish

Collaborators

  • joeyjiron06