0.0.7-s1 • Published 3 years ago

@nomorejalapenos/counter v0.0.7-s1

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

Counter

const counter = createCounter({
  step: 3,
  max: 10,
  min: 0,
  loop: true,
  initial: 5,
  overflow: true,
  watch: (value) => console.log(value.current),
})

counter.notifier.listen('change', (v) => console.log(v))

setInterval(counter.inc, 500)
// setInterval(counter.dec, 500)
// setInterval(() => counter.stp(1), 500)
0.0.7-s1

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago