'use strict'; var ControlC = require('control-c'); var singleCount = 0; var doubleCount = 0; ControlC( function singleControlC() { console.log('Single:', ++singleCount); }, function doubleControlC() { console.log('Double:', ++doubleCount); }, function tripleControlC() { console.log('Reset'); singleCount = doubleCount = 0; }, function quadrupleControlC() { console.log('Exit'); process.nextTick(proc