1.0.0 • Published 3 years ago
@pkrish123/streak-counter v1.0.0
streak-counter
About
This is a streak counter library, to be used when implementing functionality such as calculating how many days in a row you've accessed a particular site.
Install
npm install streak-counter
How to Use streak-counter
import {get_streak, get_streak_duration, increment_streak} from 'streak_counter'
cont streak = get_streak()
cont streak_duration = get_streak_duration()
cont streak = increment_streak()
1.0.0
3 years ago