1.0.0 • Published 3 years ago

@pkrish123/streak-counter v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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()