Skip to content
sindresorhusPublic

About

๐Ÿˆ Left pad a string with cats

Resources

Code of conduct

Contributing

Stars

56 stars

Watchers

4 watching

Forks

Latest commit

ย 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.

About

๐Ÿˆ Left pad a string with cats

Resources

Code of conduct

Contributing

Stars

56 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages