gitlog-parser

0.0.4 • Public • Published

gitlog-parser Build Status

parse git log stream(Readable)

Installation

$ npm install gitlog-parser --save

Usage

var parselog = require('gitlog-parser').parse;
var exec = require('child_process').exec;
 
parselog(exec('git log').stdout).on('commit', function(commit) {
  // hash
  // author
  // message
  // ...
});
 
parselog(exec('git log index.js').stdout).on('commit', function(commit) {
  // just show the history of index.js
});

NB: Hi, what's the difference from node-gitlog

gitlog based on any text in git log command, so she is a text parser, not folder(.git) parser, so easy.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i gitlog-parser

Weekly Downloads

81

Version

0.0.4

License

MIT

Last publish

Collaborators

  • yorkie