@n3okill/utils
Version:
Many javascript helpers
16 lines • 617 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.padEnd = padEnd;
const pad_1 = require("./pad");
/**
* Pads the current Buffer with a string (repeated, if needed) so that the resulting buffer reaches the given length
* The padding is applied form the end (right) of the Buffer
* @param str Buffer to be padded
* @param length Final size of the Buffer
* @param padString String to be added to the Buffer
* @returns Padded Buffer
*/
function padEnd(str, length, padString = " ") {
return (0, pad_1.pad)(str, length, padString, false);
}
//# sourceMappingURL=padEnd.js.map
;