Skip to content

Latest commit

History

History
35 lines (21 loc) 路 422 Bytes

readme.md

File metadata and controls

35 lines (21 loc) 路 422 Bytes

cat-pad

Install

$ npm install cat-pad

Usage

import catPad from 'cat-pad';

catPad('Meow', 6);
//=> '馃悎馃悎Meow'

API

catPad(input, length)

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

input

Type: string

String to pad.

length

Type: number
Default: 0

Padding length.