right-padding
v0.0.4
Published
Right padding for strings
Downloads
19
Maintainers
Readme
right-pad(ding)
Left pad for right minded people
Install
$ npm install right-padding
Usage
rightpad = require('right-padding')
rightpad('foo', 5)
// => "foo "
rightpad('foobar', 6)
// => "foobar"
rightpad(1, 2, 0)
// => "10"