npm.io
1.0.2 • Published 3 years ago

ucounter

Licence
MIT
Version
1.0.2
Deps
1
Size
53 kB
Vulns
0
Weekly
0

streak-counter

  • Simple npm library which provides api for counter and can be accessed from anywhere.
  • This is demo created while learning TDD way of working.

To Install From NPM

yarn add ucounter
# OR
npm install ucounter

Usage

import { streakCounter } from 'ucounter'

const today = new Date()
const streak = streakCounter(localStorage, today)

// This will return an object with count