@xenovka/ts-streak-counter
v0.0.1
Published
This basic streak counter is inspired by DuoLingo - written in TypeScript and meant for browser
Downloads
2
Readme
basic streak counter
This basic streak counter is inspired by DuoLingo - written in TypeScript and meant for browser
Install
yarn add @xenovka/streak-counter
or
npm install @xenovka/streak-counter
Usage
import { streakCounter } from "@xenovka/streak-counter";
const today = new Date();
const streak = streakCounter(localStorage, today);