skin-tone
Change the skin tone of an emoji πŸ‘ŒπŸ‘ŒπŸ»πŸ‘ŒπŸΌπŸ‘ŒπŸ½πŸ‘ŒπŸΎπŸ‘ŒπŸΏ
Last updated 2 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install skin-tone 
SYNC missed versions from official npm registry.

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

import skinTone from 'skin-tone';

skinTone('????', 'brown');
//=> '????????'

skinTone('????', 'white');
//=> '????????'

// Can also remove skin tone.
skinTone('????????', 'none');
//=> '????'

// Just passes it through when not supported.
skinTone('????', 'darkBrown');
//=> '????'

API

skinTone(emoji, type)

emoji

Type: string

Emoji to modify.

type

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.

Current Tags

  • 4.0.0                                ...           latest (2 years ago)

7 Versions

  • 4.0.0                                ...           2 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           9 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |