Socket
Socket
Sign inDemoInstall

git-commit-info

Package Overview
Dependencies
27
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git-commit-info

Get the info of an specific commit hash


Version published
Weekly downloads
5.4K
decreased by-8.36%
Maintainers
1
Install size
499 kB
Created
Weekly downloads
 

Readme

Source

git-commit-info

Get all information about a specific commit.

Build Status Build status Coverage Status

Installation

$ npm i git-commit-info --save

or

$ yarn add git-commit-info

Usage

Available parameters:

  • cwd: Specify the path. Default: process.cwd()
  • commit: The hash of the commit. Default: latest
const gitCommitInfo = require('git-commit-info');

// information of process.cwd() and the latest commit
gitCommitInfo();

// information of the latest commit in ./my_repo
gitCommitInfo({
  cwd: './my_repo',
});

// information of the specified commit in process.cwd()
gitCommitInfo({
  commit: '82442c2405804d7aa44e7bedbc0b93bb17707626', // any hash
});

// information of the specified commit in ./my_repo
gitCommitInfo({
  cwd: './my_repo',
  commit: '82442c2405804d7aa44e7bedbc0b93bb17707626', // any hash
});

LICENSE

MIT © Jan Peer Stöcklmair

Keywords

FAQs

Last updated on 08 Jun 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc