Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emojilib

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emojilib

Emoji keyword library.

  • 4.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
916K
increased by8.47%
Maintainers
2
Weekly downloads
 
Created

What is emojilib?

The emojilib npm package is a library that provides a comprehensive list of emoji keywords and their corresponding emoji characters. It is useful for applications that need to display, search, or categorize emojis based on keywords.

What are emojilib's main functionalities?

Get Emoji by Keyword

This feature allows you to retrieve an emoji object by its keyword. The object contains the emoji character, associated keywords, and other metadata.

const emojilib = require('emojilib');
const emoji = emojilib.lib['grinning'];
console.log(emoji); // Output: { keywords: [ 'face', 'smile', 'happy', 'joy', 'kawaii' ], char: '😀', fitzpatrick_scale: false, category: 'people' }

List All Emojis

This feature allows you to list all available emojis in the library. It maps through the emoji library and extracts the emoji characters.

const emojilib = require('emojilib');
const allEmojis = Object.keys(emojilib.lib).map(key => emojilib.lib[key].char);
console.log(allEmojis); // Output: Array of all emoji characters

Search Emojis by Keyword

This feature allows you to search for emojis by a specific keyword. It filters the emoji library based on the presence of the keyword in the emoji's keywords array.

const emojilib = require('emojilib');
const searchEmojis = (keyword) => {
  return Object.keys(emojilib.lib).filter(key => emojilib.lib[key].keywords.includes(keyword)).map(key => emojilib.lib[key].char);
};
console.log(searchEmojis('happy')); // Output: Array of emojis related to 'happy'

Other packages similar to emojilib

Keywords

FAQs

Package last updated on 13 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc