|
|
%!s(int64=3) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| examples | %!s(int64=3) %!d(string=hai) anos | |
| .npmignore | %!s(int64=3) %!d(string=hai) anos | |
| README.md | %!s(int64=3) %!d(string=hai) anos | |
| package.json | %!s(int64=3) %!d(string=hai) anos | |
| rightpad.js | %!s(int64=3) %!d(string=hai) anos | |
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...