# rxgitcid **Repository Path**: cheere/rxgitcid ## Basic Information - **Project Name**: rxgitcid - **Description**: Get the commit ID of the last commit of git. - - - Node.js 工具- - 获取本地git最后一次提交的记录 commit-id - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: https://cheere.github.io/rxgitcid/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-15 - **Last Updated**: 2024-11-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: Nodejs ## README # rxgitcid Get the commit `ID` of the last commit of git. ```sh npm i rxgitcid --save-dev ``` # Usage ```js // 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 1. cidSync # License [MIT](https://github.com/cheere/rxgitcid/blob/main/LICENSE)