Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 560 Bytes

readme.md

File metadata and controls

35 lines (23 loc) · 560 Bytes

rugga-pad

Install

$ npm install --save rugga-pad

Usage

const ruggaPad = require('rugga-pad');

ruggaPad('ball', 6);
//=> '🏉🏉ball'

API

ruggaPad(input, length)

Pads input with rugby balls on the left side if it's shorter than length. Padding rugby balls are truncated if they exceed length.

input

Type: string

String to pad.

length

Type: number
Default: 0

Padding length.

License

Created with ♥ by Tiaan du Plessis. Licensed under the MIT License.