Skip to content

yorkie/node-gitlog-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

parse git log stream(Readable)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published