@progfay/github-streaks
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -16,3 +16,3 @@ "use strict"; | ||
Min: statistics.min.toString(), | ||
Median: statistics.median.toFixed(2), | ||
Mean: statistics.mean.toFixed(2), | ||
'Std dev': statistics.stddev.toFixed(2) | ||
@@ -36,3 +36,3 @@ }); | ||
]; | ||
const table = convertToTable_1.convertToTable(rows, ['Category', ' From ~ To ', 'Day Count', 'Sum', 'Max', 'Min', 'Median', 'Std dev']); | ||
const table = convertToTable_1.convertToTable(rows, ['Category', ' From ~ To ', 'Day Count', 'Sum', 'Max', 'Min', 'Mean', 'Std dev']); | ||
console.log(table); | ||
@@ -39,0 +39,0 @@ }; |
@@ -12,3 +12,3 @@ "use strict"; | ||
min: 0, | ||
median: 0, | ||
mean: 0, | ||
stddev: 0 | ||
@@ -31,5 +31,5 @@ }; | ||
} | ||
statistics.median = statistics.sum / statistics.days; | ||
statistics.stddev = Math.sqrt((sumOfSquare / statistics.days) - statistics.median ** 2); | ||
statistics.mean = statistics.sum / statistics.days; | ||
statistics.stddev = Math.sqrt((sumOfSquare / statistics.days) - statistics.mean ** 2); | ||
return statistics; | ||
}; |
@@ -16,3 +16,3 @@ "use strict"; | ||
min: 0, | ||
median: 0, | ||
mean: 0, | ||
stddev: 0 | ||
@@ -19,0 +19,0 @@ }; |
{ | ||
"name": "@progfay/github-streaks", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Check GitHub streaks from CLI", | ||
@@ -5,0 +5,0 @@ "main": "src/index.ts", |
@@ -16,3 +16,3 @@ import { range } from './lib/range' | ||
'Min': string | ||
'Median': string | ||
'Mean': string | ||
'Std dev': string | ||
@@ -28,3 +28,3 @@ } | ||
Min: statistics.min.toString(), | ||
Median: statistics.median.toFixed(2), | ||
Mean: statistics.mean.toFixed(2), | ||
'Std dev': statistics.stddev.toFixed(2) | ||
@@ -53,3 +53,3 @@ }) | ||
] | ||
const table = convertToTable(rows, ['Category', ' From ~ To ', 'Day Count', 'Sum', 'Max', 'Min', 'Median', 'Std dev']) | ||
const table = convertToTable(rows, ['Category', ' From ~ To ', 'Day Count', 'Sum', 'Max', 'Min', 'Mean', 'Std dev']) | ||
console.log(table) | ||
@@ -56,0 +56,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
15209