Constructor
new WriteVscodeStat(extensionName, outDiropt)
Initialize WriteVscodeStat class
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
extensionName |
string | name of the target vscode extension | |
outDir |
string | null |
<optional> |
path of the directory where the gathered data will be saved into csv files |
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
outDir |
string | null |
<optional> |
path of the directory where the gathered data will be saved into csv files | |
datePeriod |
StatPeriod |
<optional> |
year | grouping of the statistics |
writeExtensionName |
boolean |
<optional> |
false | flag used to write the name of the extension into a csv column |
mergeStoredData |
boolean |
<optional> |
true | flag used to merge actual day's vscode statistics with previously stored |
- Source:
Methods
getVscodeStat() → {Promise}
Returns actual day's vscode statistics for an extension
- Source:
Returns:
Promise object represents the actual day's vscode statistics for an extension
- Type
- Promise
writeVscodeStat(postfixopt) → {Promise}
Writes actual day's vscode statistics for an extension
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
postfix |
string | null |
<optional> |
vscodestat | postfix of the csv file |
- Source:
Returns:
Promise object represents the actual day's vscode statistics for an extension
- Type
- Promise