git-command-helper
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

git-command-helper

GitHub CLI Helper For NodeJS. Parse responses from github CLI to NodeJS Object Oriented Programming (OOP).

npm version npm - Known Vulnerabilities github - Known Vulnerabilities

Features

  • Submodule parser
  • Asynchronous friendly
  • Git Conventional Commit Helpers

Installation

npm i git-command-helper

Beta Version

npm i git-command-helper@https://github.com/dimaslanjaka/git-command-helper.git

CLI usages

Conventional Commits Helper

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"

Documentations

Usages

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());

Custom Command

github.spawn('git', ['fetch'], { stdio: 'pipe' }).then(console.log)

Another Examples

/git-command-helper/

    Package Sidebar

    Install

    npm i git-command-helper

    Weekly Downloads

    78

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    97.8 kB

    Total Files

    71

    Last publish

    Collaborators

    • dimaslanjaka