3.0.0 • Published 3 years ago

cat-pad v3.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

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.