skin-tone
Change the skin tone of an emoji πππ»ππΌππ½ππΎππΏ
The Fitzpatrick scale is used to specify skin tones for emoji characters which represent humans.
Install
$ npm install skin-tone
Usage
const skinTone = require('skin-tone');
skinTone('π', 'brown');
skinTone('π', 'white');
skinTone('ππΎ', 'none');
skinTone('π¦', 'darkBrown');
API
skinTone(emoji, tone)
emoji
Type: string
Emoji to modify.
tone
Type: 'none' | 'white' | 'creamWhite' | 'lightBrown' | 'brown' | 'darkBrown'
Skin tone to use for emoji
.
'none'
: (Removes skin tone)'white'
: π» (Fitzpatrick Type-1β2)'creamWhite'
: πΌ (Fitzpatrick Type-3)'lightBrown'
: π½ (Fitzpatrick Type-4)'brown'
: πΎ (Fitzpatrick Type-5)'darkBrown'
: πΏ (Fitzpatrick Type-6)
Skin tone to use for emoji
.
License
MIT Β© Sindre Sorhus