Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@emoji-mart/data
Advanced tools
@emoji-mart/data is a comprehensive emoji data package that provides a wide range of emoji-related functionalities. It includes data for all emojis, including their names, categories, and various properties. This package is useful for applications that need to display, search, or categorize emojis.
Emoji Data Retrieval
This feature allows you to retrieve detailed data for specific emojis using their Unicode or short names.
const emojiData = require('@emoji-mart/data');
console.log(emojiData.emojis['1F600']); // Logs data for the grinning face emoji
Category Listing
This feature provides a list of all emoji categories, which can be useful for organizing or displaying emojis by category.
const emojiData = require('@emoji-mart/data');
console.log(emojiData.categories); // Logs all emoji categories
Search Functionality
This feature allows you to search for emojis based on their names or other properties, making it easier to find specific emojis.
const emojiData = require('@emoji-mart/data');
const searchEmojis = (query) => {
return Object.values(emojiData.emojis).filter(emoji => emoji.name.includes(query));
};
console.log(searchEmojis('smile')); // Logs all emojis with 'smile' in their name
emoji-datasource provides a similar set of emoji data, including names, categories, and properties. It is often used in conjunction with other libraries to display and search for emojis. Compared to @emoji-mart/data, it offers a more basic dataset without some of the additional functionalities.
emojibase-data offers a comprehensive set of emoji data, including support for multiple languages and skin tones. It is more extensive in terms of localization compared to @emoji-mart/data, making it a good choice for applications that need to support multiple languages.
emoji-picker-react is a complete emoji picker component for React applications. It includes emoji data and a user interface for selecting emojis. While it provides similar data to @emoji-mart/data, it also includes a ready-to-use UI component, making it more suitable for React developers.
@emoji-mart/data
This package contains the data used by EmojiMart.
FAQs
Data for Emoji Mart; the emoji picker for the web.
We found that @emoji-mart/data demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.