1.0.1 • Published 8 years ago
@garylocke/right-pad v1.0.1
right-pad
String right pad (inverse of the popular left-pad package).
Install
$ npm install @garylocke/right-pad
Usage
rightpad = require('@garylocke/right-pad')
rightpad('foo', 5)
// => "foo "
rightpad('foobar', 6)
// => "foobar"
rightpad(1, 2, 0)
// => "10"