Skip to content

egoist/repo-latest-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repo-latest-commit NPM version NPM downloads Build Status

Get the latest commit info of a git repository.

Install

$ npm install --save repo-latest-commit

Usage

const latestCommit = require('repo-latest-commit')

latestCommit()
<!-- {
  message: 'let it rock\n    \n    wow',
  commit: 'ad4e3a8c6797300cf18665e421de9763ba8ef3fa',
  author: 'Your Name',
  email: 'you@example.com',
  date: 'Thu Oct 6 17:38:00 2016 +0800' 
} -->

latestCommit('../another-directory')

License

MIT © EGOIST

About

Get the latest commit info of a git repository.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published