multipad

pad any text to the left, right, or center

Usage no npm install needed!

<script type="module">
  import multipad from 'https://cdn.skypack.dev/multipad';
</script>

README

multipad

pad any text to the left, right, or center

to install: npm install multipad

check it out on npm

var pad = require('multipad');

pad.right('hello', 10, '*'); // 'hello*****'

pad.left('hello', 10, '*'); // '*****hello'

pad.center('hello', 10, '*'); // '***hello**'

pad.center('hello', 11, '*'); // '***hello***'