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"
Right padding for strings
<script type="module">
import rightPadding from 'https://cdn.skypack.dev/right-padding';
</script>
Left pad for right minded people
$ npm install right-padding
rightpad = require('right-padding')
rightpad('foo', 5)
// => "foo "
rightpad('foobar', 6)
// => "foobar"
rightpad(1, 2, 0)
// => "10"