random-text-meme

1.1.9 • Public • Published

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.

Package Sidebar

Install

npm i random-text-meme

Weekly Downloads

1

Version

1.1.9

License

MIT

Unpacked Size

23.9 kB

Total Files

8

Last publish

Collaborators

  • rk.xtd