Static Blog Generator Gulp

git-command-helper

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

npm version git-command-helper

Features

  • Submodule parser
  • Asynchronous friendly

Installation

Beta Version

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

to update beta version

npm update git-command-helper

Production Version

npm i git-command-helper

Documentation

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

Links