
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
emoji-unicode-version
Advanced tools
Get the unicode version for a given emoji name.
Useful for testing native unicode emoji support. Test a single emoji and assume any other emoji with that same version is supported.
npm install emoji-unicode-version
const emojiNameToUnicodeVersion = require('emoji-unicode-version');
// 6.1
console.log(emojiNameToUnicodeVersion('grinning'));
// 9.0
console.log(emojiNameToUnicodeVersion('rofl'));
const emojiNameToUnicodeVersion = require('emoji-unicode-version');
const emojione = require('emojione');
function unicodeToName(emojiUnicode) {
const emojiShortName = emojione.toShort(emojiUnicode);
const emojiName = emojiShortName.slice(1, emojiShortName.length - 1);
return emojiName;
}
// grinning, 6.1
console.log(emojiNameToUnicodeVersion(unicodeToName('😀')));
// rofl, 9.0
console.log(emojiNameToUnicodeVersion(unicodeToName('🤣')));
Emoji name list is pulled from EmojiOne
We grab the emoji unicode versions from Emojipedia.
ZWJ sequences use the unicode version for the highest individual emoji in the sequence.
Also See
v0.3.0 - 2018-2-25
cricket
(insect) is now Unicode version 10.0
instead of previously referencing cricket ball and bat (Unicode 8.0
)FAQs
Get the unicode version for a given emoji name
The npm package emoji-unicode-version receives a total of 133 weekly downloads. As such, emoji-unicode-version popularity was classified as not popular.
We found that emoji-unicode-version demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.