emoji-pad
v1.0.0
Published
[![Build Status](https://travis-ci.org/raksonibs/emoji-pad.svg?branch=master)](https://travis-ci.org/raksonibs/emoji-pad)
Downloads
5
Maintainers
Readme
Emoji Pad🐶🐕🐩🐺
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