node-stay-awake
Node module which prevents computer from going into automatic sleep. Currently supports windows and mac osx.
Installation
npm install stay-awake
Usage
var stayAwake = ; // do something not so important // prevent auto sleepstayAwake; // do something which needs the computer to stay awake // do something async; // once done allow the computer to sleep as configured in power managementstayAwake; // allow