{"_id":"skin-tone","_rev":"3276358","name":"skin-tone","description":"Change the skin tone of an emoji 👌👌🏻👌🏼👌🏽👌🏾👌🏿","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2024-03-21T10:28:28.000Z","created":"2016-06-27T16:34:20.230Z","4.0.0":"2024-01-07T23:59:44.247Z","3.0.0":"2021-04-14T07:02:05.573Z","2.0.0":"2019-04-28T14:28:24.619Z","1.0.0":"2017-01-13T10:46:04.075Z","0.2.0":"2016-07-04T19:35:03.056Z","0.1.1":"2016-06-28T18:28:48.772Z","0.1.0":"2016-06-27T16:34:20.230Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/skin-tone.git"},"versions":{"4.0.0":{"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":{"shasum":"1e812f891ee3bd67d2197e667cde6891d300ea02","size":2819,"noattachment":false,"key":"/skin-tone/-/skin-tone-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/skin-tone/download/skin-tone-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/skin-tone_4.0.0_1704671984086_0.6497764736050784"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-07T23:59:44.247Z","publish_time":1704671984247,"_source_registry_name":"default","_cnpm_publish_time":1704671984247},"3.0.0":{"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":{"shasum":"75520c7fca9f39a19e2fe41586e72f4dd4db96e2","size":2111,"noattachment":false,"key":"/skin-tone/-/skin-tone-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/skin-tone/download/skin-tone-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/skin-tone_3.0.0_1618383725404_0.43329120829437806"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T02:38:48.151Z","publish_time":1618383725573,"_cnpm_publish_time":1618383725573},"2.0.0":{"name":"skin-tone","version":"2.0.0","description":"Change the skin tone of an emoji 👌👌🏻👌🏼👌🏽👌🏾👌🏿","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/skin-tone.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"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":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"bdd70e91891ebd383151ee4af13921a36432e65c","bugs":{"url":"https://github.com/sindresorhus/skin-tone/issues"},"homepage":"https://github.com/sindresorhus/skin-tone#readme","_id":"skin-tone@2.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4e3933ab45c0d4f4f781745d64b9f4c208e41237","size":2154,"noattachment":false,"key":"/skin-tone/-/skin-tone-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/skin-tone/download/skin-tone-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/skin-tone_2.0.0_1556461704461_0.15456271973539626"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T02:38:47.192Z","publish_time":1556461704619,"_cnpm_publish_time":1556461704619},"1.0.0":{"name":"skin-tone","version":"1.0.0","description":"Change the skin tone of an emoji 👌👌🏻👌🏼👌🏽👌🏾👌🏿","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/skin-tone.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["emoji","emojis","skin","tone","type","unicode","emoticon","fitzpatrick","scale","modify","change","strip","remove"],"dependencies":{"unicode-emoji-modifier-base":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"d6b108ca840ace85b53f59435676f2446c5c8fa1","bugs":{"url":"https://github.com/sindresorhus/skin-tone/issues"},"homepage":"https://github.com/sindresorhus/skin-tone#readme","_id":"skin-tone@1.0.0","_shasum":"d4ba3e8e5e92760e4d1d3b603d772805c6cb256f","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d4ba3e8e5e92760e4d1d3b603d772805c6cb256f","size":2187,"noattachment":false,"key":"/skin-tone/-/skin-tone-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/skin-tone/download/skin-tone-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/skin-tone-1.0.0.tgz_1484304363847_0.35712278191931546"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T02:38:45.610Z","publish_time":1484304364075,"_cnpm_publish_time":1484304364075},"0.2.0":{"name":"skin-tone","version":"0.2.0","description":"Change the skin tone of an emoji 👌👌🏻👌🏼👌🏽👌🏾👌🏿","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/skin-tone.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["emoji","emojis","skin","tone","type","unicode","emoticon","fitzpatrick","scale","modify","change","strip","remove"],"dependencies":{"unicode-emoji-modifier-base":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"2e7bbee257a76b70c9dc5d81ce2dd35544b4e10b","bugs":{"url":"https://github.com/sindresorhus/skin-tone/issues"},"homepage":"https://github.com/sindresorhus/skin-tone#readme","_id":"skin-tone@0.2.0","_shasum":"0d2ae1aa04be4ecc2efa1f5debb01e27898b8eb5","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0d2ae1aa04be4ecc2efa1f5debb01e27898b8eb5","size":2195,"noattachment":false,"key":"/skin-tone/-/skin-tone-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/skin-tone/download/skin-tone-0.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/skin-tone-0.2.0.tgz_1467660900413_0.9494349858723581"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T02:38:44.701Z","publish_time":1467660903056,"_cnpm_publish_time":1467660903056},"0.1.1":{"name":"skin-tone","version":"0.1.1","description":"Change the skin tone of an emoji 👌👌🏻👌🏼👌🏽👌🏾👌🏿","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/skin-tone.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["emoji","emojis","skin","tone","type","unicode","emoticon","fitzpatrick","scale","modify","change","strip","remove"],"dependencies":{"unicode-emoji-modifier-base":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"791270e14799f10bd203bb16420dc4c2e83f1a57","bugs":{"url":"https://github.com/sindresorhus/skin-tone/issues"},"homepage":"https://github.com/sindresorhus/skin-tone#readme","_id":"skin-tone@0.1.1","_shasum":"bc53043bdb066ced5cc0aafb910a77712a0a578a","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"bc53043bdb066ced5cc0aafb910a77712a0a578a","size":2038,"noattachment":false,"key":"/skin-tone/-/skin-tone-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/skin-tone/download/skin-tone-0.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/skin-tone-0.1.1.tgz_1467138527666_0.3086516198236495"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T02:38:43.780Z","publish_time":1467138528772,"_cnpm_publish_time":1467138528772},"0.1.0":{"name":"skin-tone","version":"0.1.0","description":"Change the skin tone of an emoji 👌👌🏻👌🏼👌🏽👌🏾👌🏿","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/skin-tone.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["emoji","emojis","skin","tone","type","unicode","emoticon","fitzpatrick","scale","modify","change","strip","remove"],"dependencies":{"unicode-emoji-modifier-base":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"eada57f6e9ad8b0d2f082e56b3b37f834751ddd0","bugs":{"url":"https://github.com/sindresorhus/skin-tone/issues"},"homepage":"https://github.com/sindresorhus/skin-tone#readme","_id":"skin-tone@0.1.0","_shasum":"936cde29634fa3b00a950df4a2b2983f071d58db","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"936cde29634fa3b00a950df4a2b2983f071d58db","size":2044,"noattachment":false,"key":"/skin-tone/-/skin-tone-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/skin-tone/download/skin-tone-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/skin-tone-0.1.0.tgz_1467045259377_0.3027477781288326"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T02:38:42.861Z","publish_time":1467045260230,"_cnpm_publish_time":1467045260230}},"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","_attachments":{},"homepage":"https://github.com/sindresorhus/skin-tone#readme","bugs":{"url":"https://github.com/sindresorhus/skin-tone/issues"},"license":"MIT"}