{"_id":"@eibens/emoji-list","_rev":"2-407cc87b95d88d02d75405a3960271e9","name":"@eibens/emoji-list","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@eibens/emoji-list","version":"1.0.0","gitHead":"0a7ca3856ef896909ceba53939eadcce87c1acad","description":"This repository contains a list of all emoji metadata scraped from [this website *(WARNING: downloads 27 MB)*](https://unicode.org/emoji/charts/full-emoji-list.html). I made this because I could not find any readily available list with both names AND unic","_id":"@eibens/emoji-list@1.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.13.0","dist":{"integrity":"sha512-IKniSEIhE4AIdfavvk2txTA2AEkTYAxWsRricO8djCj/T94cPSJE7B5n39tShS6RCgglLt807ZuoziaiQh6RgA==","shasum":"11c0fb0cb285d86ec347580c785a71403b15f082","tarball":"https://registry.npmjs.org/@eibens/emoji-list/-/emoji-list-1.0.0.tgz","fileCount":14,"unpackedSize":457305,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4VcYCRA9TVsSAnZWagAACJkP/j/V4FmbMohjTEeKvqRI\nLiJFapEOmDATsmGTggKdwC1lArGUvHBwtYrilKq5W9HPDOfEVtptmJncWOki\nzXi10PPWOU5KX6IJtKNVOs8zIf0zmNvHWtUELOUMGzrtJvK0T/B2yxahvzpJ\nw977dhrAei+b0hRvlZCFSwl9QlgdnRtWKbOVZUES2xJ3KhrOhYOBHqvOw2gG\n0soXzCInLm/4V3m04wvfvq4hHzwBmJjQsJSUR/J5I0mDJtu86xkHdyJn9OGZ\nONhcoAy2PqlNGA3j36rlvlKr8So7d5bmffB6kyW+zl3v5XUKKfQg9PSrtAg8\nBNX36GsqjuM2REefbHfjsUx0duMUleQZyUsIqB3KxoqVV3gGeoKtaZJ8bI3R\nUVZ8XW1w4KXy/njeKy3oBEXamYbC9ISXpTrXBwcKiqSSJJ1Cdzgq+UGZ9F2M\nybsvElru3LySQj8Ni2tDi6kWPQYHLfO1O3hqaPnObzcptggK2l8n3onrB/OZ\n/IFbs2Ou71usLrQbClHy/W+/B+QRrXf4vHReW+q2Vwuw3j41Oc2NKhXz2QpI\nOB0oDPEUnZuNtAq6P3gjOVU+/a6RalpFfaZm1QhrXkN7gY/XM9VWHFYFSvjh\nt81m5HrgoiCSVOroW6Mq5aLlxEK1WgcN5WghygkjUqapeWm7tWOA7cdQuKtU\n1r3b\r\n=tREU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEyhOVGPYc2esV0U63yf30ns+aeF5V0IFDKzAnoTXJGuAiEA8wX0wSvUZ02x/AuG+3kiVdb54gmE2adUAJ29OFX8LOk="}]},"maintainers":[{"name":"eibens","email":"l.eibensteiner@gmail.com"}],"_npmUser":{"name":"eibens","email":"l.eibensteiner@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/emoji-list_1.0.0_1575048983778_0.8444103425885396"},"_hasShrinkwrap":false},"1.0.1":{"name":"@eibens/emoji-list","version":"1.0.1","main":"index.js","gitHead":"1796cb29c919dfed75c0451d1720ecb800a773ea","description":"This repository contains a list of all emoji metadata scraped from [this website *(WARNING: downloads 27 MB)*](https://unicode.org/emoji/charts/full-emoji-list.html). I made this because I could not find any readily available list with both names AND unic","_id":"@eibens/emoji-list@1.0.1","_nodeVersion":"10.15.3","_npmVersion":"6.13.0","dist":{"integrity":"sha512-Lg+/9aSxDLecP1SH36W6L9nEyeK8z7ukrzkZjuNW5sAofFyGb772M9KMEsZ7BFIqH1FdLxTNOqNadLbFJXklOw==","shasum":"e405061304b20bbd69175bd6a4884d72afc1177e","tarball":"https://registry.npmjs.org/@eibens/emoji-list/-/emoji-list-1.0.1.tgz","fileCount":5,"unpackedSize":615648,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4V9oCRA9TVsSAnZWagAAv48P+wWZLnlvCPy4t2gGhwqA\nBYFm5b/ibBNx+Ibvspb5lkEXg+rh0PfMaLqV4EnD8IQpsqMiOCz8UhCX+zw9\n3L4KzQOX2C1B/r7vEZ2SuIO2g2tF7CBFpNCtSfDsHdPKdQzSmC2D1gAQW9D5\np6Tqqm8V7iPUWL4+lW1BdW3wxbWTD4e2YxyJdI6coWQfjvFPvvPrjmVrzj3Q\nRePlWRFt4ucxdYMK+XulHTkCgRjs8cfv5mCLJsseVEprRTOLrGepM1qOwgES\nhHOFFPZlZcjQhsWP2CPpWouzo3wro7en8ald2b/xS2yA92PpVdqLQ64Ofyo6\nLBXkyHvIquI8n+39qT9mib/HAscv2LeWCrcaWEKqU6eFxb5Wu/sx2WiDw+v6\nBZ/yH/UfKdboQf9aCCGxE0jCH22gTxqcMLtaNWJY1XNzb2p+ZytT51Hi1Cb+\nGhgbrsk9tTZcM7ACGqFADL4K+GjJ/e00Vx7IM2cPjQDe487asflCxmgcgLht\nXgWqQIDqXYMD3yFG2qKU713MObBBToQtTbwlBQZBvDF12jvkAmQZoCWaTJ3U\n7CZlHsAuaASZk8HtuHVLZBL0XrKcHT+AeFe5+e5TJcTqvtcgNU6EwiFNLyaS\nfa3tFns+c0kwNKJwpJ7Y3gEtKmdhIQ2NTiTazQObfEtpcdGPmIwtu7bDOYw5\ntu3a\r\n=hHVf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAL1F6FpdJa57TFHhuuZXSjKt/cTJS52N7Q59cI4F4uIAiEA+GhQDaoIavRU8SBFEaLUxhuHOqWnPIUNk4klLMS1Z5s="}]},"maintainers":[{"name":"eibens","email":"l.eibensteiner@gmail.com"}],"_npmUser":{"name":"eibens","email":"l.eibensteiner@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/emoji-list_1.0.1_1575051112295_0.18361870986107376"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-29T17:36:23.697Z","1.0.0":"2019-11-29T17:36:24.040Z","modified":"2022-04-05T06:58:46.407Z","1.0.1":"2019-11-29T18:11:52.466Z"},"maintainers":[{"name":"eibens","email":"l.eibensteiner@gmail.com"}],"description":"This repository contains a list of all emoji metadata scraped from [this website *(WARNING: downloads 27 MB)*](https://unicode.org/emoji/charts/full-emoji-list.html). I made this because I could not find any readily available list with both names AND unic","readme":"# emoji list\r\n\r\nThis repository contains a list of all emoji metadata scraped from [this website *(WARNING: downloads 27 MB)*](https://unicode.org/emoji/charts/full-emoji-list.html). I made this because I could not find any readily available list with both names AND unicode codepoints. You can use this list together with your favorite emoji set:\r\n\r\n- [emoji.json](emoji.json) (with formatting)\r\n- [emoji.min.json](emoji.min.json) (without formatting)\r\n\r\nThe list is a JSON array of objects, each with a `category`, `subcategory`, `name`, and array of `codes`. Here are the first two emojis from [emoji.json](emoji.json) as an example:\r\n\r\n```json\r\n[\r\n  {\r\n    \"category\": \"Smileys & Emotion\",\r\n    \"subcategory\": \"face-smiling\",\r\n    \"name\": \"grinning face\",\r\n    \"codes\": [\r\n      \"1F600\"\r\n    ]\r\n  },\r\n  {\r\n    \"category\": \"Smileys & Emotion\",\r\n    \"subcategory\": \"face-smiling\",\r\n    \"name\": \"grinning face with big eyes\",\r\n    \"codes\": [\r\n      \"1F603\"\r\n    ]\r\n  }\r\n]\r\n```\r\n\r\n## npm\r\n\r\nYou can get the list from npm:\r\n\r\n    npm install @eibens/emoji-list\r\n\r\nThe emoji list object is the default export of the package:\r\n\r\n```JavaScript\r\nimport emojiList from '@eibens/emoji-list'\r\n\r\nemojiList.forEach(emoji => console.log(emoji.name))\r\n```\r\n\r\n## Do it yourself\r\n\r\nYou can export the list yourself, if you wish. The steps were tested and work in newest Firefox and Google Chrome:\r\n\r\n1. Copy the source code below.\r\n2. Go to [this website *(WARNING: downloads 27 MB)*](https://unicode.org/emoji/charts/full-emoji-list.html)\r\n3. Open the browser console (<kbd>F12</kbd> or right click and `Inspect Element`).\r\n4. Paste the source code into the console and press <kbd>Enter</kbd>.\r\n5. Wait a few seconds until the console outputs `emojis gathered!`.\r\n6. The emoji list is now in your clipboard and you can paste it anywhere.\r\n\r\n```JavaScript\r\nformat = false // change to `true` if you want formatted output\r\ncopy((format => {\r\n  function Xs (node, path) {\r\n    const result = node.ownerDocument\r\n      .evaluate(path, node, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null)\r\n    const nodes = []\r\n    let n\r\n    while (n = result.iterateNext()) nodes.push(n)\r\n    return nodes\r\n  }\r\n  function XText (node, path) {\r\n    return Xs(node, path)[0].textContent\r\n  }\r\n  const list = Xs(document.body, '//tr[td]').map(tr => ({ \r\n    category: XText(tr, '(preceding::tr/th[@class=\"bighead\"])[last()]'),\r\n    subcategory: XText(tr, '(preceding::tr/th[@class=\"mediumhead\"])[last()]'),\r\n    // must replace '⊛' in name of recently added emojis \r\n    name: XText(tr, 'td[last()]').replace(/⊛/, '').trim(),\r\n    // multiple codes in single anchor tag\r\n    codes: XText(tr, 'td[2]/a').split(' ').map(code => code.substr(2))\r\n  }))\r\n  return JSON.stringify(list, null, format ? 2 : null)\r\n})(format))\r\nconsole.log('emojis gathered!')\r\n```\r\n\r\n## Contact\r\n\r\n:pencil: Lukas Eibensteiner<br>\r\n:e-mail: [l.eibensteiner@gmail.com](mailto:l.eibensteiner@gmail.com)<br>\r\n:package: [eibens/emoji-list](https://github.com/eibens/emoji-list)\r\n","readmeFilename":"README.md"}