Gathering detailed insights and metrics for @nostar/gitlog
Gathering detailed insights and metrics for @nostar/gitlog
Gathering detailed insights and metrics for @nostar/gitlog
Gathering detailed insights and metrics for @nostar/gitlog
npm install @nostar/gitlog
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
10 Commits
1 Branches
1 Contributors
Updated on Jul 06, 2020
Latest Version
0.0.9
Package Id
@nostar/gitlog@0.0.9
Unpacked Size
12.27 kB
Size
3.64 kB
File Count
5
NPM Version
6.4.1
Node Version
8.15.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
git log
方法虽然强大,但是总有些不尽如人意的地方。就比如--grep
的正则支持的是BER
和ERE
。我更喜欢自定义一些。
请确保命令行可以正常使用git且当前文件夹下有.git
1# 本项目安装 2npm i @nostar/gitlog -D 3 4# 全局安装 5npm i @nostar/gitlog -g 6 7# 默认显示当月1号到今天的commit 8gitlog 9 10# 配置显示since到before日期的commit,包含since和before当天 11gitlog --since=2020-03-16 --before=2020-03-19 12 13# 默认显示当月1号到今天的commit,并校验commit message 14gitlog --lint 15 16# 默认显示当月1号到今天的commit,并校验commit message,并仅显示校验通过记录 17gitlog --lint --filter=pass 18 19# 默认显示当月1号到今天的commit,并校验commit message,并仅显示校验未通过记录 20gitlog --lint --filter=fail 21 22# 默认显示当月1号到今天的commit,按用户分组 23gitlog --user 24 25# 默认显示当月1号到今天的commit,按用户分组,并校验commit message 26gitlog --user --lint 27 28# 默认显示当月1号到今天的commit,按用户分组,并校验commit message,并仅显示校验未通过记录 29gitlog --user --lint --filter=pass 30 31# 默认显示当月1号到今天的commit,按用户分组,并校验commit message,并仅显示校验未通过记录 32gitlog --user --lint --filter=fail 33
自己猜吧。
1const config = { 2 '--no-pager': true, 3 '--format': "{'author':'%an','message':'%s','datetime':'%ad','hash':'%h'}", 4 '--since': undefined, 5 '--before': undefined, 6 '--date': "format:%Y-%m-%d %H:%M:%S", 7 '--no-merges': true, 8 '--reverse': false, 9 '--lint': false, 10 '--user': false, 11 '--grep': '^(feat|fix|update|perf|doc|docs|test|chore|refactor|revert)(\\(.*\\))?:\\s.*', 12 '--sort': "fail,commit", 13 '--sort-type': 'desc', 14 '--only-show': '', 15 '--padding': '0,2,0,2', 16 '--cwd': './' 17};
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/10 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More