git-head-sha
v1.0.1
Published
Read git SHA1 value of a repository's HEAD revision
Downloads
2
Readme
gitsha
Read git SHA1 value of a repository's HEAD revision
使用
const gitSha = require('git-head-sha');
// length 为截取字符串长度(从字符串首部开始截取)
gitSha({
length: 7
});