kill all node server mac terminal

JavaScript
killall nodeprocess.exit();
Source

Also in JavaScript: