Gathering detailed insights and metrics for commitlint-plugin-semantic-commit-emoji
Gathering detailed insights and metrics for commitlint-plugin-semantic-commit-emoji
Gathering detailed insights and metrics for commitlint-plugin-semantic-commit-emoji
Gathering detailed insights and metrics for commitlint-plugin-semantic-commit-emoji
Prepend emoji to matching semantic commit messages
npm install commitlint-plugin-semantic-commit-emoji
Typescript
Module System
Min. Node Version
51.9
Supply Chain
52.6
Quality
77.7
Maintenance
50
Vulnerability
79.3
License
commitlint-config-semantic-commit-emoji-v3.0.1
Updated on Sep 17, 2024
commitlint-plugin-semantic-commit-emoji-v3.0.1
Updated on Sep 17, 2024
semantic-commit-emoji-v2.0.0
Updated on Sep 16, 2024
semantic-commit-emoji-config-v3.0.0
Updated on Sep 16, 2024
commitlint-config-semantic-commit-emoji-v3.0.0
Updated on Sep 16, 2024
commitlint-plugin-semantic-commit-emoji-v3.0.0
Updated on Sep 16, 2024
TypeScript (75.18%)
JavaScript (22.69%)
Shell (2.13%)
Total Downloads
42,532
Last Day
11
Last Week
362
Last Month
1,636
Last Year
21,974
GPL-3.0 License
4 Stars
279 Commits
3 Forks
2 Watchers
7 Branches
2 Contributors
Updated on Feb 20, 2025
Minified
Minified + Gzipped
Latest Version
3.0.1
Package Id
commitlint-plugin-semantic-commit-emoji@3.0.1
Unpacked Size
74.91 kB
Size
25.91 kB
File Count
8
Published on
Sep 17, 2024
Cumulative downloads
Total Downloads
1
1
Prepend emoji to matching semantic commit messages.
commit-msg
git hook.Example:
1$ git commit -m "feat: Add new function" -m "Some expanded description about the feature" 2$ git log --format=%B -n 1 HEAD 3:sparkles:feat: Add new function 4 5Some expanded description about the feature 6$
The list of current message types and their used emoji
Type | Emoji |
---|---|
feat | :sparkles: :sparkles: |
fix | :bug: :bug: |
docs | :pencil: :pencil: |
refactor | :recycle: :recycle: |
style | :art: :art: |
test | :microscope: :microscope: |
perf | :zap: :zap: |
hotfix | :ambulance: :ambulance: |
locale | :globe_with_meridians: :globe_with_meridians: |
ci | :construction_worker: :construction_worker: |
chore | :wrench: :wrench: |
types | :label: :label: |
This can either be a global module if this is just a personal preference, or a project one, so that you may enforce consistency on all contributors. It is recommended that you use a utility, like Husky, to manage consistently setting up git hooks on project setup.
1yarn global add semantic-commit-emoji 2# or 3npm g i semantic-commit-emoji
1yarn add --dev semantic-commit-emoji 2# or 3npm install --save-dev semantic-commit-emoji
For a standalone git hook, you can symlink the script into the appropriate hook
1mkdir -p .git/hooks 2ln -s ./node_modules/.bin/semantic-commit-emoji
If you want this hook to run with other commit-message
or prepare-commit-message
hooks, it can be called from the hook file like this (assuming sh syntax):
1#!/bin/sh 2 3# ... Other git hooks 4 5# If globally installed module 6commit-message-emoji "$@" 7# Or if localy installed module 8npx commit-message-emoji "$@"
An example for husky can be found in this repo's .huskyrs.js file.
By design, this package will let you override an emoji with your own if you provide it in your message. This offers the greatest flexibility for your own preferences over the conventions of this script.
It is recommended that you use this in the commit-msg
hook, as the prepare-commit-msg
hook prepares templates for an editor.
This means that if a user runs git commit
their message that was entered via an external editor will not get processed, and therefore will miss the benefits of this package.
Since this is a user script, this will not be able to rewrite messages generated by git server actions, like merging a PR on github or bitbucket. If need be, you could write a CI step to detect merged and reverts from your source control server, rewrite the message and force push it back up. However, it is the opinion of the maintainer that you shoud probably just do a manual merge of PRs according to the copy+paste script that github provides.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/22 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-02
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 MoreLast Day
0%
11
Compared to previous day
Last Week
13.5%
362
Compared to previous week
Last Month
-12.7%
1,636
Compared to previous month
Last Year
73.7%
21,974
Compared to previous year