text: module.exports = {
      promiseAllProgress: function (proms, progress_cb) {
          let d = 0;
          progress_cb(0);
          proms.forEach((p) => {
              p.then(() => {
                  d++;
                  progress_cb((d * 100) / proms.length);
              });
          });
          return Promise.all(proms);
      },
      sleep: function (millis) {
          return new Promise(resolve => setTimeout(resolve, millis));
      },
      clear: function () {
          console.log('\033[2J');
      }
  };