code: function clearLine() {
          if (process.stdout.clearLine) {
              process.stdout.clearLine();
              process.stdout.cursorTo(0);
          } else {
              var str = '\r',
                  i = 0;
              for (i = 0; i < lastLineLength; i++) {
                  str += ' ';
              }
              process.stdout.write(str);
          }
          lastLineLength = 0;
  
          return self;
      }
docs: Clear line until last new line white character