0.0.4 • Published 7 months ago

rxgitcid v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

rxgitcid

Get the commit ID of the last commit of git.

npm i rxgitcid --save-dev

Usage

  // node / cjs
  const rxgitcid = require('rxgitcid')
  // or
  import rxgitcid from 'rxgitcid'

  // 1
  const gitLastId = rxgitcid.cidSync()
  console.log('id =', gitLastId) // ec0b419

  // 2
  rxgitcid.cid(id => {
    console.log('cb id =', id) // ec0b419
  })

api

  1. cid
  2. cidSync

License

MIT

0.0.4

7 months ago

0.0.3

2 years ago

0.0.2

3 years ago

0.0.1

4 years ago