$ npm install --save rugga-pad
const ruggaPad = require('rugga-pad');
ruggaPad('ball', 6);
//=> '🏉🏉ball'
Pads input
with rugby balls on the left side if it's shorter than length
. Padding rugby balls are truncated if they exceed length
.
Type: string
String to pad.
Type: number
Default: 0
Padding length.
Created with ♥ by Tiaan du Plessis. Licensed under the MIT License.