GitShow/sindresorhus/skin-tone
sindresorhus

skin-tone

Change the skin tone of an emoji

by sindresorhus
Star on GitHubForknpm

JavaScript

62 stars9 forks5 contributorsQuiet · 9mo agoSince 2016v4.0.0MIT

Meet the team

See all 5 on GitHub →
sindresorhus
sindresorhus16 contributions
darkmark1991
darkmark19911 contribution
BendingBender
BendingBender1 contribution
markogresak
markogresak1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript88.8%
TypeScript11.2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Recent fixes

View closed PRs →
dewald-L
victory-hand emoji default skin tone and modified skin tone don't matchClosedIssue

(Tried making a PR, but didn't have rights to push the branch) Overview The issue is that the victory-hand emoji default skin tone when used directly (✌️) does not match with the result from applying the skin tone to the victory-hand of another skin tone. Steps to reproduce Two ways of testing this: 1. The following test added to the code base will fail: (outside of code block render): t.is(skinTone('✌🏻', 'none'), '✌️'); 2. The following code (remember to init an npm project, and have : The result of step 2 is: Expected result The victory-hand default skin tone when pasted should be matched successfully against the 'none' applied skin tone. The ok-hand successfully matches using the same manner, where the victory-hand fails.

dewald-L · 9mo ago
misha-pavlov
Pilot emojisClosedIssue

Skin tone is not applied to pilot emojis correctly.

misha-pavlov · 9mo ago
darkmark1991
Support additional emoji typesMergedPR

fixes #5 + adds support for multi component emojis (couples, detective, etc.) Changes 1. Update the check to see if emoji is skin tone compatible. This means that emoji has less than 3 modifiable components (3+ are families, there is no plans to support skin tone for those at this stage https://www.unicode.org/L2/L2020/20114-family-emoji-explor.pdf) For the several two-person family emojis additional check was added 2. Exclude character as it interferes with skin tone application https://unicode.org/reports/tr51/#composing_zwj_seq 3. Apply skin tone to the right of every modifiable character (couples, etc.) 4. Fix skin tone removal to remove from all modifiable characters (couples, etc.)

darkmark1991 · 2y ago
Structured data for AI agents

Repository: sindresorhus/skin-tone. Description: Change the skin tone of an emoji Stars: 62, Forks: 9. Primary language: JavaScript. Languages: JavaScript (88.8%), TypeScript (11.2%). License: MIT. Latest release: v4.0.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Top contributors: sindresorhus, darkmark1991, BendingBender, markogresak, Richienb.

·@ofershap

Replace github.com with gitshow.dev