Node.js examples for String:Padding
Pad strings on the right
String.prototype.rpad = function(padString, length) { var str = this; while (str.length < length) str = str + padString;//from w w w. ja va 2 s .com return str; }