I have a Node script and I need it to be executed as a single instance application. What I need is something in the form
// myscript.js
if(somelibmaybe.already_running())
process.exit();
else
// Do things
Is there any way at all to do this in a decent, cross-platform way?