{"name":"skin-tone","version":"4.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":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["emoji","emojis","skin","tone","type","unicode","emoticon","fitzpatrick","scale","modify","change","strip","remove"],"devDependencies":{"ava":"^6.0.1","tsd":"^0.30.3","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"2d5457aad651d922d1bf5465d1da97de8b739743","bugs":{"url":"https://github.com/sindresorhus/skin-tone/issues"},"homepage":"https://github.com/sindresorhus/skin-tone#readme","_id":"skin-tone@4.0.0","_nodeVersion":"21.5.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-oVTC072yJCXdkjUXAA3rRsRo1op6XfAH1/AXJQznxdwwiYTEvYB6eG9SOU8FeVaEuz+LuoPDYEY5BBMj+uRHVQ==","shasum":"1e812f891ee3bd67d2197e667cde6891d300ea02","tarball":"http://registry-npm.ywwl.com/skin-tone/download/skin-tone-4.0.0.tgz","fileCount":5,"unpackedSize":6186,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPdNETFZWBow9XmrZ4OMrwJz/mkhn5/fnuQ1lOPS/CBAiBaGkQEadoMi9BwluuyS7kkLS5N2jd+mujwjtLJwL8D5Q=="}],"size":2819,"noattachment":false,"key":"/skin-tone/-/skin-tone-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/skin-tone_4.0.0_1704671984086_0.6497764736050784"},"_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":1704671984247,"_cnpm_publish_time":1704671984247,"dist-tags":{"latest":"4.0.0"}}