lib/string-tools.js
function padRight(input, width, padWith){
    padWith = padWith || " ";
    input = String(input);
    if (input.length < width){
        return input + fill(padWith, width - input.length);
    } else {
        return input;
    }
}
function padRight(input, width, padWith){
    padWith = padWith || " ";
    input = String(input);
    if (input.length < width){
        return input + fill(padWith, width - input.length);
    } else {
        return input;
    }
}
function padRight ( input , width , padWith ) { padWith = padWith || " " ; input = String ( input ) ; if ( input . length < width ) { return input + fill ( padWith , width - input . length ) ; } else { return input ; } }
Add padding to the right of a string
@param {string} - the string to pad
@param {number} - the desired final width
@param {string} [padWith=" "] - the padding character
@returns {string}
@example
```js
> s.padRight("clive", 1)
'clive'
> s.padRight("clive", 1, "-")
'clive'
> s.padRight("clive", 10, "-")
'clive-----'
```
@alias module:string-tools.padRight
Add padding to the right of a string