@cjser/cat-pad
v3.0.0-cjser.2
Published
Left pad a string with cats
Maintainers
Readme
Install
$ npm install cat-padUsage
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.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/cat-pad

