🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

emoji-pad

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoji-pad

[![Build Status](https://travis-ci.org/raksonibs/emoji-pad.svg?branch=master)](https://travis-ci.org/raksonibs/emoji-pad)

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
6
50%
Maintainers
1
Weekly downloads
 
Created
Source

Emoji Pad🐶🐕🐩🐺

Build Status

Inspired by Sindre Sorhus.

Install

$ npm install --save emoji-pad

Usage

const emojiPad = require('emoji-pad');

emojiPad('Woof', 3, '🐶');
//=> '🐶🐶🐶Woof'

emojiPad('Woof', 3, '🐶', 'right');
//=> 'Woof🐶🐶🐶'

API

emojiPad(input, count)

input

Type: string

String to pad.

count

Type: number
Default: 0

Amount of emojis.

direction

Type: string
Default: left

Side to pad with emojis.

License

MIT © Oskar Niburski

Keywords

emojiis

FAQs

Package last updated on 29 Aug 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