commit-hash
Obtain a repository's commit hash from a branch name, tag, or reference.
Installation
npm install commit-hash
Usage
var commitHash = ; // looking up a short commit hash, in a project in the current directory; // looking up a tag with modifiers, in a project somewhere else; // looking up a remote branch, after fetching from all remotes// to ensure the local repo has updated references;
License
MIT license - http://www.opensource.org/licenses/mit-license.php