commit-conv
v1.0.3
Published
Converts commit messages based on commit conventions
Downloads
370
Readme
commit-conv
Converts commit messages based on commit conventions.
Documentation
Table of Contents
commitConv
Convert a commit message into one that follows the specified commit convention
.
Parameters
param
Object<string> Parametersparam.tag
string Tag of the commit message (e.g:fix
,chore
,feat
,docs
,test
, ...) (optional, defaultrequired('tag')
)param.msg
string Header of the commit message (optional, defaultrequired('msg')
)param.convention
string Name of the commit convention (angular
,atom
,ember
,eslint
,jshint
ornone
) (optional, default''
)
Examples
commitConv({tag: 'docs', msg: 'Update README.md', convention: 'angular'}); //'docs: update README.md'
commitConv({tag: 'fix', msg: 'bye bye #1', convention: 'eslint'}); //'Fix: Bye bye #1'
Returns string Commit message
Contributions
Please refer to that.
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind are welcome!