code: function leftpad(input, size) {
    let n = input.length;
  
    if (n > size)
      n = size;
  
    const out = Buffer.allocUnsafe(size);
    out.fill(0);
  
    input.copy(out, out.length - n);
  
    return out;
  }
docs: /*
  Helpers