We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 631d331 commit 162c4deCopy full SHA for 162c4de
src/showStreak.ts
@@ -1,9 +1,10 @@
1
+import chalk from 'chalk'
2
import type { StreakStrategyType } from './type'
3
4
export const showStreak = (contributions: Map<string, number>, streakStrategy: StreakStrategyType): void => {
5
const { from, to, count } = streakStrategy(contributions)
6
if (from && to && count > 0) {
- console.log(`${from.toString()} ~ ${to.toString()} (${count} ${count === 1 ? 'days' : 'day'})`)
7
+ console.log(`${chalk.green(from.toString())} ~ ${chalk.green(to.toString())} (${chalk.green.bold(count)} ${count > 1 ? 'days' : 'day'})`)
8
} else {
9
console.log('No streak...')
10
}
0 commit comments