![]() |
há 2 anos atrás | |
---|---|---|
.. | ||
examples | há 2 anos atrás | |
.npmignore | há 2 anos atrás | |
README.md | há 2 anos atrás | |
package.json | há 2 anos atrás | |
rightpad.js | há 2 anos atrás |
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...