Skip to content

sophilabs/gilp-util

Repository files navigation

Gilp Util

travis coverage npm downloads js-semistandard-style license dependencies dev-dependencies

Utils for gilp.

Installation

npm install gilp-util

or

yarn add gilp-util

Usage

getArgs()

Read git hook's parameters.

  const gilpUtil = require('gilp-util');
  gilpUtil.getArgs();

getBranchName()

Get current branch

  const gilpUtil = require('gilp-util');
  gilpUtil.getBranchName();

getGitDirectory()

Return full path to git directory.

getBaseDirectory()

Return full path to base directory.

isInMerge()

Return true if a merge is in progress.

getCommitMessage()

Return commit message.

License

Gilp Util is Copyright (c) 2020 sophilabs, inc. It is free software, and may be redistributed under the terms specified in the license file.

About

sophilabs

Gilp Util is maintained and funded by sophilabs, inc. The names and logos for sophilabs are trademarks of sophilabs, inc.