Skip to content

Repository files navigation

rxgitcid

Get the commit ID of the last commit of git.

npm i rxgitcid --save-dev

Usage

// node / cjsconstrxgitcid=require('rxgitcid')// orimportrxgitcidfrom'rxgitcid'// 1constgitLastId=rxgitcid.cidSync()console.log('id =',gitLastId)// ec0b419// 2rxgitcid.cid(id=>{console.log('cb id =',id)// ec0b419})

api

  1. cid
  2. cidSync

License

MIT

About

Get the commit ID of the last commit of git.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages