Skip to content

rkxtd/random-text-meme

Repository files navigation

Build Status Coverage Status npm version Maintainability Test Coverage dependencies Status devDependencies Status bundle size

random-text-meme generator

Tired? we don't know how to help you! but we sure do have nice text emoji. ヽ(°∀°人´ヮ´)ノ

Just look at those beautiful faces: ᶘಠᴥಠᶅ (´・(oo)・`) ᕕ( ᐛ )ᕗ ( ͡° ͜ʖ ͡°) 乁(ツ)ㄏ (ᵔᴥᵔ)

Demo

RunKit friendly demo! https://npm.runkit.com/random-text-meme

Usage

Install

npm i random-text-meme --save

Require

const { getEmoji, getAllEmoji, getThemes } = require('random-text-meme');

Display emoji

  • getEmoji('flip-table'); => (╯°□°)╯︵ ┻━┻
  • getEmoji(); => ಠ_ಠ
  • getThemes(); => ['boo', 'bear', 'cat', 'dog', ...]

Not Found

if for some reason dictionary not found, or emoji could not be found, default emoji: (╯°□°)╯︵ ᔭ0ᔭ would be returned.

Test

npm run test runs unit tests

Api

  • getEmoji - returns random emoji. theme name can be specified (than random emoji would be chosen from within a theme).
  • getAllEmoji - returns all emoji. theme name can be specified.
  • getThemes - get list of all available themes.

copyright

all emoji were found on the internet. Most copied from https://cutekaomoji.com website.