Node.js examples for String:Padding
Padding methods used in creation of DBF files as fields must be written to the specified length
//pad strings on the left String.prototype.lpad = function(padString, length) { var str = this; while (str.length < length) str = padString + str;/*from w w w . j a v a2 s .com*/ return str; }