code: function paddingNumber(num, radix, digits, upperCase, paddingChar, sign, align) {
    let str = num.toString(radix);
    if (upperCase) {
      str = str.toUpperCase();
    }
    if (digits === 0) {
      return str;
    }
  
    if (sign === "plus" && num >= 0) {
      str = `+${str}`;
    } else if (sign === "space" && num >= 0) {
      str = ` ${str}`;
    }
  
    let len = str.length;
    let result = "";
    while ((digits - len++) > 0) {
      result += paddingChar;
    }
  
    if (align === "left") {
      result = str + result;
    } else {
      result += str;
    }
  
    if (align === "right_lead_sign") {
      result = result.replace(/.(.*)([-+ ])(.+)/i, `$2$1${paddingChar}$3`);
    }
  
    return result;
  }
docs: align : string "left", "right", "left_lead_sign" sign : "minus", "plus", "space"