Pads a Buffer with spaces on the right until the length is equal to the specified length. If the value's length is greater than the specified length, returns the original value.
A new Buffer that is the original value padded with spaces
The value to be padded with spaces
The desired length of the padded value
Generated using TypeDoc
Pads a Buffer with spaces on the right until the length is equal to the specified length. If the value's length is greater than the specified length, returns the original value.
Returns
A new Buffer that is the original value padded with spaces