0.0.7-s1 • Published 2 years ago

@nomorejalapenos/counter v0.0.7-s1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago