文件名称:last-commit-log:Node.js模块获取最新的git commit信息-主要由CICD和构建阶段使用
文件大小:9KB
文件格式:ZIP
更新时间:2024-06-15 20:07:28
git commit marmot JavaScript
最后提交日志 Node.js模块可获取最新的git commit信息-主要由CI / CD和构建阶段使用。 谁在用 :star: :star: :star: :star: :star: :star: :star: :star: :star: 用法 const LCL = require ( 'last-commit-log' ) ; const lcl = new LCL ( ) ; // or `new LCL(dir)` dir is process.cwd() by default 异步使用,使用Promise: lcl . getLastCommit ( ) . then ( commit => console . log ( commit ) ) ; 同步使用: const commit = lcl . getLastCommitSync ( ) ; 提交信息是一个像这样的对象: { " gitTag " : " 2.0
【文件预览】:
last-commit-log-master
----.gitignore(64B)
----line-diff.js(1KB)
----README.md(4KB)
----test()
--------line-diff.test.js(278B)
--------mocha.opts(12B)
--------unit.test.js(3KB)
----examples()
--------promise.js(165B)
--------async-function.js(256B)
----LICENSE(1KB)
----.eslintrc(76B)
----package.json(843B)
----index.js(4KB)
----.eslintignore(9B)
----.travis.yml(120B)
----.npmrc(19B)