0.0.1 • Published 8 years ago
hall-monitor v0.0.1
Install
YARN
yarn add hall-monitorNPM
npm install --save hall-monitorExample Usage
import HallMonitor from 'hall-monitor'
const clearMonitor = HallMonitor.register({
interval: 10000,
eventType: 'click',
callback: () => { console.log('do a thing') },
});Description of a register object
| option | purpose | example |
|---|---|---|
| interval | How often should a given callback trigger | 10000 |
| eventType | Used to determine activity (Optional) | 'click' |
| callback | what will execute on the interval | Any(Function) |
0.0.1
8 years ago