Gathering detailed insights and metrics for gitlog-with-nopager-option
Gathering detailed insights and metrics for gitlog-with-nopager-option
Gathering detailed insights and metrics for gitlog-with-nopager-option
Gathering detailed insights and metrics for gitlog-with-nopager-option
npm install gitlog-with-nopager-option
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (91.7%)
Shell (8.3%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
114 Commits
3 Branches
1 Contributors
Updated on Aug 03, 2021
Latest Version
1.0.0
Package Id
gitlog-with-nopager-option@1.0.0
Unpacked Size
24.50 kB
Size
7.87 kB
File Count
13
NPM Version
6.5.0
Node Version
10.13.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Git log parser for Node.JS
npm install gitlog --save
1const gitlog = require('gitlog'); 2 3const options = 4 { repo: __dirname + '/test-repo-folder' 5 , number: 20 6 , author: 'Dom Harrington' 7 , fields: 8 [ 'hash' 9 , 'abbrevHash' 10 , 'subject' 11 , 'authorName' 12 , 'authorDateRel' 13 ] 14 , execOptions: 15 { maxBuffer: 1000 * 1024 16 } 17 }; 18 19// Asynchronous (with Callback) 20gitlog(options, function(error, commits) { 21 // Commits is an array of commits in the repo 22 console.log(commits) 23}); 24 25// Synchronous 26let commits = gitlog(options); 27console.log(commits);
See git log
The location of the repo, required field.
The number of commits to return, defaults to 10.
Show commits more recent than a specific date.
Show commits older than a specific date.
Limit the commits output to ones with author/committer header lines that match the specified pattern.
Below fields was returned from the log:
This option is enabled by default.
Much more likely to set status codes to 'C' if files are exact copies of each other.
This option is disabled by default.
Find commits on all branches instead of just on the current one.
This option is disabled by default.
Show only commits in the specified branch or revision range.
By default uses the current branch and defaults to HEAD
(i.e. the whole history leading to the current commit).
Type: Object
Specify some options to be passed to the .exec() method:
cwd
String Current working directory of the child processenv
Object Environment key-value pairssetsid
Booleanencoding
String (Default: 'utf8')timeout
Number (Default: 0)maxBuffer
Number (Default: 200*1024)killSignal
String (Default: 'SIGTERM')An array of fields to return from the log, here are the possible options:
Defaults to 'abbrevHash', 'hash', 'subject' and 'authorName'.
This module works by executing a child process (using child_process.exec()
) to the git
executable, then parsing the stdout into commits. This is done using the --pretty
command line option which allows you to provide a custom formatter to git log
. To enable easy parsing the format is delimited by a tab (\t
) character.
1 { hash: '6a7ef5e3b3d9c77743140443c8f9e792b0715721', 2 abbrevHash: '6a7ef5e', 3 treeHash: 'f1bf51b15b48a00c33727f364afef695029864c0', 4 abbrevTreeHash: 'f1bf51b', 5 parentHashes: 'cfe06dbdb8d0a193640977e016a04678f8f3b04f', 6 abbrevParentHashes: 'cfe06dbdb8d0a193640977e016a04678f8f3b04f', 7 authorName: 'Dom Harrington', 8 authorEmail: 'dom@harringtonxxxxx', 9 authorDate: '2015-04-09 09:39:23 +0100', 10 authorDateRel: '6 days ago', 11 committerName: 'Dom Harrington', 12 committerEmail: 'dom@harringtonxxxxx', 13 committerDate: 'Thu Apr 9 09:39:23 2015 +0100', 14 committerDateRel: '6 days ago', 15 subject: '1.0.0', 16 status: [ 'M' ], 17 files: [ 'package.json' ] }
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More