Package Exports
- repeat-me
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (repeat-me) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
repeat-me
Simple JavaScript repeater.
const RepeatMe = require('./repeat-me')
const timeout = 100 // 0.1 second
const logCount = count => console.log(count)
// Both these options are optional
const options = {
maxCalls: 5, // optional (default: Infinity)
finished: logCount // optional
}
// Start the repeat function
const repeater = new RepeatMe(logCount, timeout, options)
repeater.stop() // stop the repeater if you want to
repeater.start() // start it again
// get the current number of calls to repeat function
repeater.getCalledCount()