Gathering detailed insights and metrics for @pierred/commity
Gathering detailed insights and metrics for @pierred/commity
Gathering detailed insights and metrics for @pierred/commity
Gathering detailed insights and metrics for @pierred/commity
npm install @pierred/commity
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (69.23%)
JavaScript (25.65%)
HTML (5.12%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
4 Stars
277 Commits
1 Forks
1 Watchers
9 Branches
4 Contributors
Updated on Feb 20, 2023
Latest Version
2.0.0
Package Id
@pierred/commity@2.0.0
Unpacked Size
326.15 kB
Size
288.11 kB
File Count
30
NPM Version
8.19.2
Node Version
18.12.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
Commity is a command line tool that will help you with commits conventions. You can configure Commity fast & easily so every collaborators can follow the commit convention you need.
node >= 14.16.0
1npm i -g @pierred/commity
or
1npm i -D @pierred/commity
Warning If your git diff tree is not clean, you may not want to use
-a
(--addAll
) option.
1npm i -g @pierred/commity 2commity init 3commity -a
or
1npm i -D @pierred/commity 2npx commity init 3npx commity -a
commity ìnit <options>
Create a new commity.json
configuration file.
Note If a configuration file already exists, you can reset the configuration file via rich-interaction.
--overwrite
alias -o
(works with init
)commity <options>
Run Commity, allow to commit from chunks via rich-interaction. Workspace must be git initialized and commity friendly.
--addAll
alias -a
Add all changes to the index (git add --all
) before commit.
--push
alias -p
Push to remote after commit.
Note If cannot push e.g. because your branch has no upstream branch, commity will be able to commit anyway.
--help
alias -h
Return usage informations.
--version
Bump version.
You can setup chunks
& render
in commity.json
file.
1{ 2 "chunks": [ 3 { 4 "scope": { 5 "label": "Select the type of change that you're committing", 6 "type": "select", 7 "selectOptions": [ 8 { 9 "value": "feat", 10 "description": "A new feature" 11 }, 12 { 13 "value": "fix", 14 "description": "A bug fix" 15 }, 16 { 17 "value": "docs", 18 "description": "Documentation only changes" 19 }, 20 { 21 "value": "refactor", 22 "description": "Changes that neither fixes a bug or adds a feature" 23 }, 24 { 25 "value": "spec", 26 "description": "Changes that affect unit tests" 27 }, 28 { 29 "value": "pkg", 30 "description": "Changes that affect package (deps, config, readme...)" 31 } 32 ] 33 } 34 }, 35 { 36 "message": { 37 "label": "Choose the commit message", 38 "decorations": { 39 "prefix": ": " 40 } 41 } 42 }, 43 { 44 "ticket": { 45 "label": "What is the issue id", 46 "decorations": { 47 "prefix": " #" 48 }, 49 "required": false 50 } 51 } 52 ], 53 "render": "{{scope}}{{ticket}}{{message}}" 54}
Each chunk is identified via the key and can be rendered as desired in render
area.
type
string requiredCan be simple
(default value) or select
.
label
string requiredChunk description.
selectOptions
{value: string, description: string} required with type = "select"
Choices for the chunk.
required
booleanWeither the chunk is required.
decorations
{prefix: string}Allow to decorate optional chunks so it don't mess the final render if the chunk is optional & skipped.
If the chunk is required, it's same as decorating in render
directly.
Formatted commit, replacing {{chunk's key}}
with the user input.
More features incoming :tada:
Thanks goes to these wonderful people (emoji key):
PierreDemailly 💻 📖 ⚠️ | Yefis 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
8 existing vulnerabilities detected
Details
Reason
Found 3/16 approved changesets -- score normalized to 1
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
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
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
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