@kingjs/git.get-dir

1.0.0 • Public • Published

@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

Analytics

Readme

Keywords

none

Package Sidebar

Install

npm i @kingjs/git.get-dir

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.79 kB

Total Files

5

Last publish

Collaborators

  • kingces95