/meltdown

a dead man's switch built with hook.io. if you don't meltdown::pushthebutton before the meltdown::critical happens, all hook.io jobs you added with meltdown::jobs::add will execute.

MIT LicenseMIT

meltdown - a dead man's switch for hook.io

if you don't meltdown::pushthebutton before the meltdown::critical happens, all hook.io jobs you added with meltdown::jobs::add will execute.

emitting meltdown::pushthebutton will reset meltdown.countdown back to meltdown.timer

Installation

npm install meltdown -g

Usage

meltdown

Add a Job

 hook.emit('meltdown::jobs::add', {"event":"custom-event", "data" : {"foo":"bar"}});

this will now execute when meltdown::critical occurs.

Push the button

 hook.emit('meltdown::pushthebutton');

all is well, reset the countdown