gitinfo
Gets information about Git repository.
Implementation
gitinfo reads the contents of the ./git
directory to extract information.
API
; /** * @typedef Configuration * @property * @property */ /** * @access public * @name createGitinfo * @param */const gitinfo = ; /** * Returns **Any** GitHub repository URL. */gitinfo; /** * Returns **Any** Name of the current branch. */gitinfo; /** * Returns **Any** Remote URL of the current branch. */gitinfo; /** * Returns **Any** Absolute path to the .git/ directory. */gitinfo; /** * Returns **Any** Username of the repository author. */gitinfo; /** * Returns **Any** Repository name. */gitinfo; /** * Returns **Any** Commit SHA of the current branch. */gitinfo; /** * Returns **Any** Representation of the .git/config file. */gitinfo;
Download
Download using NPM:
npm install gitinfo