{"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":{"integrity":"sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==","shasum":"4e3933ab45c0d4f4f781745d64b9f4c208e41237","tarball":"http://registry-npm.ywwl.com/skin-tone/download/skin-tone-2.0.0.tgz","fileCount":5,"unpackedSize":4738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcxbiJCRA9TVsSAnZWagAAfjYP/juNCG1CQh63ZpfALKtl\nIkLZJ206+dgjCjZu80n8S3WNAbXNoiCjlnJZIfiof/ShgMgxuMJbJw2Q+46n\nlUWl73E+agWqJn23AaQNp+Eyd8Rr3k2oXFLVg2VlDtJuq29a2A9id/Q5TL2Y\n9CT9xgJiOhXr8xAxops2Wuc2J9Asprg8nzdpWsYJ4N87UAyhqLzEHi3jJGNk\nskUkv1rD4KmDWJk2VPhDdU0GPnw5YqljO2lqL/7zopziA3F9LawaT4nUTOfL\nTDH4QI7a9CtHi0tcOpNAmmziKCJmTTf/6HBVsuHuu/DcL6zw67r1OJSI7jpi\nWfdA43Aif2NcNuh8yJuvfA2x66OkSLBz/fD5lq/on8aqrYlfDmoCCFuY8o29\nGXwyaEjQgYRtJLMB8YEJ5rBM3wkKNJqEPie8Ha4X508oHohnImoPQe2MwYef\nwYOe+a+rZ98kWS9Z2RJ9umKYOHvae5+8Ync9YBdokdM5U3/bQSBKViBct+fS\nkiVEdqfZU6fx8LHKqN4N7CZ5qf+3LpHvH7UKuC0sk8M49PUkhDimNmYDKQHm\n4JR3m2EOD7ekHPHdXFXq7LRl0yD949dZ7cTkjkweN21PnETImbpDy+aFRGcH\nv76glzH/XeOJeZPBP4AI8GiqwKgYg7JbY/Wh+YhZdD4nze6glkn9o4QWIoJr\nF6W4\r\n=YSj2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCp5ikuDTpv38jx1UA9rjweAMgjHgC8odz6J8HrxnYLSwIhAKPihxSbaBsyaNRZxT1GKstUm3FJvT3MeFUERws/5PzT"}],"size":2154,"noattachment":false,"key":"/skin-tone/-/skin-tone-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/skin-tone_2.0.0_1556461704461_0.15456271973539626"},"_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":1556461704619,"_cnpm_publish_time":1556461704619,"dist-tags":{"latest":"4.0.0"}}