Skip to content

shubhambattoo/streak-counter

Repository files navigation

Streak counter

A Basic streak counter api used for tracking your streak. Written with typescript

Installation

npm install streak-counter
yarn add streak-counter

Usage

import { streakCounter } from "@shubhambatt997/streak-counter";
const today = new Date();
const streak = streakCounter(localStorage, today);
// streak returns an object:
// {
//    currentCount: 1,
//    lastLoginDate: "11/11/2021",
//    startDate: "11/11/2021",
// }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published