git-rev-head

Get the current HEAD revision of a Git repo

MIT License

Downloads
18
Stars
4
Committers
1

git-rev-head

Get the current HEAD revision of a Git repo

npm install git-rev-head

Usage

const head = require('git-rev-head')

console.log(await head('./repo')) // prints deadbeef...

License

MIT

Package Rankings
Top 22.42% on Npmjs.org