String right pad
$ npm install right-pad
Right Pad adds a "padding" to the right side of the string with the character of your choice or just blank space.
$ npm install right-pad
var rightpad = require('right-pad');
rightpad('hello world', 14, '.'); // => hello world...
© 2010 - cnpmjs.org x YWFE | Home | YWFE