Send pushover.net notifications from Node.JS
npm install pushover-notifications
varpush=require('pushover-notifications');varp=newpush({user: process.env['PUSHOVER_USER'],token: process.env['PUSHOVER_TOKEN'],});varmsg={message: 'omg node test',title: "Well - this is fantastic",sound: 'magic',// optionalpriority: 1// optional};p.send(msg,function(err,result){if(err){throwerr;}console.log(result);});varusers=['token1','token2','token3'];varmsg={message: 'omg node test',title: "Well - this is fantastic",sound: 'magic'// optionalpriority: 1// optional,};for(vari=0,l=users.length;i<l;i++){msg.user=users[i];// token can be overwritten as well.p.send(msg,function(err,result){if(err){throwerr;}console.log(result);});}