Why Use?
Why Keep Referencing Cheatsheets To Find Your Emojis? Simply Use This Module To Export 'Em All 😎
What Can It Do?
- Export As JSON
- Export For MARKDOWN
- Fuzzy Search For Emojis
- Create Cheatsheet
Install
Run npm install crazymoji
then add const crazymoji = require('crazymoji)
to your working file 😉
Includes
- Smileys & Emotion
- People & Body
- Animals & Nature
- Food & Drink
- Travel & Places
- Activities
- Objects
- Symbols
- Flags
- GitHub Custom Emoji
Usage
console;
=> [ '🤒', '🤕', '👊', ':facepalm:', ':hot_face:', '🤦♂', '🦊', ':zany_face:', ':cold_face:', '🤓', '🌬', ':trollface:', ........... ]
console;
=> [ '🤒', '🤕', '👊', ':facepalm:', ':hot_face:', '🤦♂', '🦊', ':zany_face:', ':cold_face:', '🤓', '🌬', ':trollface:', ........... ]
console;
=> [ '🤒', '🤕' ]
const emojis = crazymoji;crazymoji
=> [ '🙈', '🙉', '🙊' ]
API
Modules
- flatten ⇒
Array.<string>
Flatter/Merge a nested arrays of emojis
- get_raw ⇒
Object
Get the RAW object containing all the emojis
- categories ⇒
Array
Get the list of categories of emojis
- sub_categories ⇒
Array.<string>
Get sub-categories of emojis
- filter_by_category ⇒
object
Filter emojis by categories
- emojify ⇒
array
Emojify an array
- find ⇒
Array.<string>
Matches emojis using fUZZY logic
- find_exact ⇒
Array.<string>
Matches emojis using fUZZY logic
- get_all_emojis ⇒
Array.<string>
List down all the emojis
Array.<string>
flatten ⇒ Flatter/Merge a nested array of strings
Returns: Array.<string>
- - Merged/Flatter array
Param | Type | Description |
---|---|---|
nested_array | Array.<string> |
Nested array of category/sub_category |
Object
get_raw ⇒ Get the RAW object containing all the emojis
Returns: Object
- - The RAW data of all the emojis
Array
categories ⇒ Get the list of categories of emojis
Returns: Array
- string - List of emoji categories
Array.<string>
sub_categories ⇒ Get sub-categories of emojis
Returns: Array.<string>
- - List of sub categories with their parent categories
object
filter_by_category ⇒ Filter emojis by categories
Returns: object
- string - List of emojis filtered by the given category
Param | Type | Description |
---|---|---|
category | string |
Exact emoji category name |
array
emojify ⇒ Emojify an array
Returns: array
- string
Param | Type | Description |
---|---|---|
sub_category | Array |
The sub category |
Array.<string>
find ⇒ Matches emojis using fUZZY logic
Returns: Array.<string>
- - Array of matched emojis
Param | Type | Description |
---|---|---|
emoji_pattern | string |
name (case insensitive) of the pattern |
Array.<string>
find_exact ⇒ Matches emojis using fUZZY logic
Returns: Array.<string>
- - Array of matched emojis
Param | Type | Description |
---|---|---|
emoji_pattern | string |
name (case insensitive) of the pattern |
Array.<string>
get_all_emojis ⇒ List down all the emojis
Returns: Array.<string>
- - List of all the emojis
Looking For A Cheatsheet ?
License
GNU Public License 3.0 Dipankar Pal 2020