Skip to content
GET A RANDOM EMOJI
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
Readme.md
cli.js
functions.js
index.js
license
package.json

Readme.md

randomoji Build Status

GET A RANDOM EMOJI

Install

npm install randomoji
or
yarn add randomoji

Usage

const randomoji = require('randomoji');

randomoji();
//=> 📄
randomoji(5);
//=> 😓 😿 👖 👑 👫
randomoji(5, 'objects')
//=> 🛋 ⌚️ 🗂 💊 🗞

API

randomoji(NumberOfEmojis, category)

NumberOfEmojis

Type: int

Number of Emojis you want. Defaults to one

category

Type: string
What category you want these emojis to be in:

Categories:

  • symbols
  • objects
  • nature
  • people
  • foods
  • places
  • activity
  • flags
  • skin tones

CLI

npm install --global randomoji
or
yarn global add randomoji
$ randomoji --help

  Usage
    randomoji [NumberOfEmojis} [category]

  Examples
    $ randomoji
    > 📄
    $ randomoji 5
    > 😓 😿 👖 👑 👫
    $ randomoji 5 objects
    > 🛋 ⌚️ 🗂 💊 🗞

License

MIT © Sara Vieira

You can’t perform that action at this time.