1.0.0 β’ Published 7 years ago
paddy v1.0.0
πΎπΎ Paddy
Tiny (60B) JavaScript module for inserting character padding into a string
Purpose
Paddy allows you to insert a padding of desired length and content within a string.
Example
const simpleTab = paddy(4);
const ghostTab = paddy(4, 'π»');
const simplePhrase = `${simpleTab}I love simple tabs!`;
const complexPhrase = `${ghostTab}I love ghost tabs!`;
console.log(simplePhrase); // " I love simple tabs!"
console.log(complexPhrase); // "π»π»π»π»I love ghost tabs!"
1.0.0
7 years ago