0.0.3 • Published 8 months ago

rxgitcid v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 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.3

8 months ago

0.0.2

2 years ago

0.0.1

2 years ago