GitHub CLI Helper For NodeJS. Parse responses from github CLI to NodeJS Object Oriented Programming (OOP).
- Submodule parser
- Asynchronous friendly
- Git Conventional Commit Helpers
npm i git-command-helperBeta Version
npm i git-command-helper@https://github.com/dimaslanjaka/git-command-helper/raw/cb096c1f021d88679cbfd3cf55a426aed64f1b94/release/git-command-helper.tgzchange commit with latest commit hash
rename cli to chore|feat|refactor|fix
cli "header" "commit message line 2" "commit message line 3"
cli -s scopename "header" "commit message line 2" "commit message line 3"
cli -s scopename "message \`code\` another message"Example
import git from 'git-command-helper' // const git = require('git-command-helper').default
// start current dir
const github = new git(__dirname)
// get current status
git.status().then(console.log)
// get submodule informations
if (git.submodule.hasSubmodule()) console.log(git.submodule.get());github.spawn('git', ['fetch'], { stdio: 'pipe' }).then(console.log)