Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

dog-pad

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dog-pad

Left pad a string with dogs

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
2
Created
Source

Build Status

Install

$ npm install --save dog-pad

Usage

const dogPad = require('dog-pad');

dogPad('Woof', 6);
//=> '🐕🐕Woof'

API

dogPad(input, length)

Pads input with dogs on the left side if it's shorter than length. Padding dogs are truncated if they exceed length.

input

Type: string

String to pad.

length

Type: number
Default: 0

Padding length.

Credit

Based on cat-pad

License

MIT © Dog Pad

Keywords

dog

FAQs

Package last updated on 02 Oct 2016

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