multipad
v1.1.1
Published
pad any text to the left, right, or center
Downloads
3
Readme
multipad
pad any text to the left, right, or center
to install: npm install multipad
var pad = require('multipad');
pad.right('hello', 10, '*'); // 'hello*****'
pad.left('hello', 10, '*'); // '*****hello'
pad.center('hello', 10, '*'); // '***hello**'
pad.center('hello', 11, '*'); // '***hello***'