🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

cat-pad

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cat-pad

Left pad a string with cats

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

cat

FAQs

Package last updated on 07 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts