|
|
il y a 3 ans | |
|---|---|---|
| .. | ||
| examples | il y a 3 ans | |
| .npmignore | il y a 3 ans | |
| README.md | il y a 3 ans | |
| package.json | il y a 3 ans | |
| rightpad.js | il y a 3 ans | |
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...