yetanotherpad
v1.0.2
Published
yet another padding package
Downloads
8
Readme
Usage
let pad = require("yetanotherpad")
function test(){
[
pad.left("hello", 10, '-'); // -----hello
pad.right("hello", 10, '-'); // hello-----
pad.left('test', 10, '1234'); // 111111test
pad.right('test', 10, '1234'); // test111111
]
.forEach((x)=>console.log(x))
}