swan-station

1.0.0 • Public • Published

swan-station

You have to call the function button within a designated time or a another function will be called. Calling the function resets the timer

js-standard-style

Yes this is a silly silly name... But it is thematic.

example

var swanStation = require('swan-station')
 
var initiateMeltdown = function(){ console.log('Meltdown!') }
var button = swanStation({ time: 1000 * 60 * 108, call: initiateMeltdown })
 
// call this button every 108 minutes or meltdown will be initiated
button()
 
// to destroy the button
button.destroy()

Package Sidebar

Install

npm i swan-station

Weekly Downloads

5

Version

1.0.0

License

MIT

Last publish

Collaborators

  • reminyborg