1.0.3 • Published 6 years ago
commit-conv v1.0.3
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
paramObject<string> Parametersparam.tagstring Tag of the commit message (e.g:fix,chore,feat,docs,test, ...) (optional, defaultrequired('tag'))param.msgstring Header of the commit message (optional, defaultrequired('msg'))param.conventionstring Name of the commit convention (angular,atom,ember,eslint,jshintornone) (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!
