Animasi Load Node JS

//Credits to Amadan on Stackoverflow
//https://stackoverflow.com/a/34848607/16386794
var twirlTimer = (function() {
  var P = ["\\", "|", "/", "-"];
  var x = 0;
  return setInterval(function() {
    process.stdout.write("\r" + P[x++]);
    x &= 3;
  }, 250);
})();
SvenVH