New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

git-head-sha

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-head-sha

Read git SHA1 value of a repository's HEAD revision

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

gitsha

Read git SHA1 value of a repository's HEAD revision

使用

const gitSha = require('git-head-sha');

// length 为截取字符串长度(从字符串首部开始截取)
gitSha({
    length: 7
});

Keywords

gitsha

FAQs

Package last updated on 14 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts