Gathering detailed insights and metrics for git-rev-promises
Gathering detailed insights and metrics for git-rev-promises
Gathering detailed insights and metrics for git-rev-promises
Gathering detailed insights and metrics for git-rev-promises
npm install git-rev-promises
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
30 Commits
1 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Jul 12, 2021
Latest Version
1.1.0
Package Id
git-rev-promises@1.1.0
Unpacked Size
9.09 kB
Size
3.34 kB
File Count
5
NPM Version
5.6.0
Node Version
9.5.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
access git revision state in node with promises
npm install git-rev-promises
1node example/simple.js
1var git = require('git-rev-promises')
return the short commit hash
return the long commit hash
return the current tag
return all the tags sorted
return the current branch
return the url for origin
return the name of the repository as defined on the origin.
return the last commit message on this branch
return the date of the last commit
return where or not you are on the SAME commit as origin
return the commit count
return the git log of process.cwd()
as an array
1git.log().then(console.log).catch(console.error) 2 //[[ 3 // "83d9628821fb3fa83a0540d329051a862d0b7e01", 4 // "Remove code dump from readme + added missing function call info", 5 // "7 hours ago", 6 // "brian" 7 //],[ 8 // "9309bff7ad5f8fc8e1a9dcdac84d43d0cdff426b", 9 // "Add commit-message command + you can now pass in a string parsing function", 10 // "7 hours ago", 11 // "brian" 12 //],[ 13 // "1b69da352c8dc3efec347d8be0e80cc849302fd7", 14 // "Adds `date` promise to return date of commit", 15 // "7 hours ago", 16 // "brian" 17 //]] 18
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
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