1.0.0 • Published 5 years ago
@kingjs/git.get-dir v1.0.0
@kingjs/git.get-dir
Returns the git root directory.
Usage
var assert = require('assert');
var getDir = require('@kingjs/git.get-dir');
console.log(getDir());
var gitFoo = getDir('foo');
console.log(gitFoo);
API
getDir([subDir])
Parameters
subDir
: A sub-directory to join to the git root directory.
Returns
Returns the git root directory.
Install
With npm installed, run
$ npm install @kingjs/git.get-dir
Source
https://repository.kingjs.net/git.get-dir
License
MIT
1.0.0
5 years ago