<commit_before># git-info by [@michalbe](http://github.com/michalbe) #
Get detailed data about current git repo.

### How to use: ###
```
npm install git-info
```
then:
```javascript
var gi = require('git-info');

// First argument of the function can be a String
gi('name', function(err, result) {
  console.log(result); // { name: name-of-the-repo }
});

// Or Array of Strings
gi(['name', 'author'], function(err, result) {
  console.log(result); // { name: name-of-the-repo,
             // author: author of the repo }
});

// Smetimes the answer can be multiline
gi('authors', function(err, result) {
  console.log(result); // { authors: [array of all the authors from the projest] }
});
```

### API ###
Supported commands:
  * `author` - top author of the repo
  * `authors` - list of all the authors
  * `authorDate` - date of last commit
  * `authorDateRelative` - date of last commit
  * `name` - name of the repository
  * `repository` - address of the repo
  * `branch` - current branch
  * `branches` - all the branches in the repo
  * `sha` - the sha of the last commit
  * `shaShort` - the sha of the last commit but in the short form
  * `subject` - the message of the last commit

### To Do ###
  * more commands? like `commitSha` or `commitMsg` ?<commit_msg>:pouting_cat: Clear readme<commit_after># git-info by [@michalbe](http://github.com/michalbe) #
Get detailed data about current git repo.

### How to use: ###
```
npm install git-info
```
then:
```javascript
var gi = require('git-info');

// First argument of the function can be a String
gi('name', function(err, result) {
  console.log(result); // { name: name-of-the-repo }
});

// Or Array of Strings
gi(['name', 'author'], function(err, result) {
  console.log(result); // { name: name-of-the-repo,
             // author: author of the repo }
});

// Smetimes the answer can be multiline
gi('authors', function(err, result) {
  console.log(result); // { authors: [array of all the authors from the projest] }
});
```

### API ###
Supported commands:
  * `author` - top author of the repo
  * `authors` - list of all the authors
  * `authorDate` - date of last commit
  * `authorDateRelative` - date of last commit
  * `name` - name of the repository
  * `repository` - address of the repo
  * `branch` - current branch
  * `branches` - all the branches in the repo
  * `sha` - the sha of the last commit
  * `shaShort` - the sha of the last commit but in the short form
  * `subject` - the message of the last commit
{'fraction_non_alphanumeric': 0.14925970388155263, 'fraction_numerical': 0.0, 'mean_word_length': 3.3252595155709344, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7071323', 'n_tokens_mistral': 802, 'n_tokens_neox': 784, 'n_words': 296}