jack e1a2621c78 update | 2 éve | |
---|---|---|
.. | ||
examples | 2 éve | |
.npmignore | 2 éve | |
README.md | 2 éve | |
package.json | 2 éve | |
rightpad.js | 2 éve |
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...