{"name":"skin-tone","version":"3.0.0","description":"Change the skin tone of an emoji 👌👌🏻👌🏼👌🏽👌🏾👌🏿","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/skin-tone.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["emoji","emojis","skin","tone","type","unicode","emoticon","fitzpatrick","scale","modify","change","strip","remove"],"dependencies":{"unicode-emoji-modifier-base":"^1.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"320023485635d24b7882cec7ec8e5b8db91ba785","bugs":{"url":"https://github.com/sindresorhus/skin-tone/issues"},"homepage":"https://github.com/sindresorhus/skin-tone#readme","_id":"skin-tone@3.0.0","_nodeVersion":"15.12.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-+HTlUiUJr3SjmOiKV3dPeGWcl7dgqv09OgFWJxD26vOmYss7DWKCl6sqHEjM1hddov/vXQN2bOKIMr0DMUJVSQ==","shasum":"75520c7fca9f39a19e2fe41586e72f4dd4db96e2","tarball":"http://registry-npm.ywwl.com/skin-tone/download/skin-tone-3.0.0.tgz","fileCount":5,"unpackedSize":4610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdpNtCRA9TVsSAnZWagAA5eMQAIGV45QyeUT6Eajzcpc2\nEHXJ9/fy+DwV0ahearuKXPrJOrjzHSye1wW6YF8tBTJQ8zPkJgnQGVeDtYPS\nOhcWlVmVscbDTVKFog2tL21MUfAe0UI9CMCzN86HbwdmOcqRgOXqSUKNWoBo\nRzmr4UnyE1dtRNNVP3b9+JjNq8qghO3BnHZVvBunfgZfma5aQknRL8qeDejz\nM9nmBNL5C+EeqoRsb0u1ntx1W0TdCy1cqYD7nFj5KBAr5YAtWavKE4gFTUQ5\ncn/awgDGATweTqLdPCPFIeCQfqJIaVGpxZ406I1WZN8kcXNvun4WHTtdvzGI\nrDPUAKW76rgwuYjrdMxElJBlWJ1YjbxPHkbZpZVxaE1eDqDT5ChGNoI/dwBi\nCpH4+TpSY2VLnCZpS1rU+aHFrcBZlKuEroZ43f30ESARlQ/sFDpXeQpcLywX\nq599rFpXqUSU88mZNORS030C7UtxO7R8LBvydpvHWmDCYQLPHDXlWKPwwJCV\nBSqyfyZXplYgc80U5oJwB+zrYtAyS+xaZsRNBJ+es6zM9PCMDeuK+f8deAkd\nbo+rYPTgD2L+6TBPI7Hx/8aSc46GeKYk/6Q/AtCnBYK9TnaIpsZwDFxL5tRJ\nGGQJJzl6Kc8oLmKNLmm/zUlbyjst0mFe5ix68Sm4UbQqcR4G0FHX2KH5q5Sc\nDrze\r\n=Cd/l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/YLzTK7id/XUutDxTiczqr1m/UK7t1kyh5BQOtFCzRQIgTBAqQjHBmcfrvBb10ZeHxKCxgu61v2FN2shB7NKr/ow="}],"size":2111,"noattachment":false,"key":"/skin-tone/-/skin-tone-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/skin-tone_3.0.0_1618383725404_0.43329120829437806"},"_hasShrinkwrap":false,"readme":"# skin-tone\n\n> Change the skin tone of an emoji 👌👌🏻👌🏼👌🏽👌🏾👌🏿\n\nThe [Fitzpatrick scale](https://en.wikipedia.org/wiki/Fitzpatrick_scale#Unicode) is used to specify skin tones for emoji characters which represent humans.\n\n## Install\n\n```sh\nnpm install skin-tone\n```\n\n## Usage\n\n```js\nimport skinTone from 'skin-tone';\n\nskinTone('👍', 'brown');\n//=> '👍🏾'\n\nskinTone('👍', 'white');\n//=> '👍🏻'\n\n// Can also remove skin tone.\nskinTone('👍🏾', 'none');\n//=> '👍'\n\n// Just passes it through when not supported.\nskinTone('🦄', 'darkBrown');\n//=> '🦄'\n```\n\n## API\n\n### skinTone(emoji, type)\n\n#### emoji\n\nType: `string`\n\nEmoji to modify.\n\n#### type\n\nType: `'none' | 'white' | 'creamWhite' | 'lightBrown' | 'brown' | 'darkBrown'`\n\nSkin tone to use for `emoji`.\n\n- `'none'`       :      *(Removes skin tone)*\n- `'white'`      : 🏻   *(Fitzpatrick Type-1–2)*\n- `'creamWhite'` : 🏼   *(Fitzpatrick Type-3)*\n- `'lightBrown'` : 🏽   *(Fitzpatrick Type-4)*\n- `'brown'`      : 🏾   *(Fitzpatrick Type-5)*\n- `'darkBrown'`  : 🏿   *(Fitzpatrick Type-6)*\n\nSkin tone to use for `emoji`.\n","publish_time":1618383725573,"_cnpm_publish_time":1618383725573,"dist-tags":{"latest":"4.0.0"}}