Skip to content

Commit 35ccc37

Browse files
committed
📝
1 parent c90a820 commit 35ccc37

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

DOCUMENTATION.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can see below the API reference of this module.
1010
- **GitStats** The `GitStats` instance.
1111

1212
### `getConfig(callback)`
13-
Fetches the configuration object from file (`~/.git-stats-config.json`).
13+
Fetches the configuration object from file (`~/.git-stats-config.js`).
1414

1515
#### Params
1616
- **Function** `callback`: The callback function.
@@ -46,7 +46,7 @@ Deletes a specifc commit from the history.
4646

4747
#### Params
4848
- **Object** `data`: The commit data containing:
49-
- `date` (String|Date): The date object or a string in a format that can be parsed.
49+
- `date` (String|Date): The date object or a string in a format that can be parsed. If not provided, the hash object will be searched in all dates.
5050
- `hash` (String): The commit hash.
5151
- `_data` (Object): If this field is provided, it should be the content of the git-stats data file as object. It will be modified in-memory and then returned.
5252
- `save` (Boolean): If `false`, the result will *not* be saved in the file.
@@ -107,11 +107,11 @@ Creates the calendar data for the provided period (default: *last year*).
107107
#### Return
108108
- **GitStats** The `GitStats` instance.
109109

110-
### `ansiCalendar(data, callback)`
110+
### `ansiCalendar(options, callback)`
111111
Creates the ANSI contributions calendar.
112112

113113
#### Params
114-
- **Object** `data`: The object passed to the `calendar` method.
114+
- **Object** `options`: The object passed to the `calendar` method.
115115
- **Function** `callback`: The callback function.
116116

117117
#### Return
@@ -136,6 +136,7 @@ Creates the authors pie.
136136
- `repo` (String): The repository path.
137137
- `radius` (Number): The pie radius.
138138
- `no_ansi` (Boolean): If `true`, the pie will not contain ansi characters.
139+
- `raw` (Boolean): If `true`, the raw JSON will be displayed.
139140
- **Function** `callback`: The callback function.
140141

141142
#### Return

0 commit comments

Comments
 (0)