
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
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 167 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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.