cat-pad

3.0.0 • Public • Published

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.

Package Sidebar

Install

npm i cat-pad

Weekly Downloads

2

Version

3.0.0

License

MIT

Unpacked Size

2.31 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus