Call a callback mostly during normal working hours
MIT License
Call a callback only sometimes with a certian likelihood. The likelihood is higer during normal working hours, and really low in the weekend.
This is useful if you want to simulate load on a server for instance.
npm install mostly-working-hours --save
var maybe = require('mostly-working-hours')
maybe(function () {
console.log('It\'s time to do some work!')
})
maybe(callback)
Will call the callback
only based on certain odds.
The odds are higest during normal working hours and lowest in the weekend.
MIT