$ npm install --save dog-pad
const dogPad = require('dog-pad');
dogPad('Woof', 6);
//=> '🐕🐕Woof'
Pads input
with dogs on the left side if it's shorter than length
. Padding dogs are truncated if they exceed length
.
Type: string
String to pad.
Type: number
Default: 0
Padding length.
Based on cat-pad
MIT © Dog Pad