Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including git-raw-commits with all npm packages installed. Try it out:

var gitRawCommits = require("git-raw-commits")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

git-raw-commits v2.0.2

Get raw git commits out of your repository using git-log(1)

NPM version Build Status: Linux Build Status: Windows Dependency Status Coverage Status

Get raw git commits out of your repository using git-log(1)


$ npm install --save git-raw-commits


var gitRawCommits = require('git-raw-commits');



gitRawCommits(gitOpts, [execOpts])

Returns a readable stream. Stream is split to break on each commit.


Type: object

Please check the available options at NOTE: Single dash arguments are not supported because of

NOTE: for <revision range> we can also use <from>..<to> pattern, and this module has the following extra options for shortcut of this pattern:


Type: string Default: ''

Type: string Default: 'HEAD'

This module also have the following additions:


Type: string Default: '%B'

Please check for format options.


Type: function

A function to get debug information.


Type: string

Filter commits to the path provided.


Options to pass to git childProcess

Type: object


Type: string

Current working directory to execute git in


$ npm install --global git-raw-commits
$ git-raw-commits --help # for more details


MIT © Steve Mao

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free