{"name":"gemoji","version":"0.0.3","description":"Named and unicode Gemoji","keywords":["gemoji","emoji","unicode","name","shortcode"],"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","devDependencies":{"istanbul":"~0.2.11","jscs":"^1.5.3","eslint":"^0.6.2","mocha":"~1.20.1"},"repository":{"type":"git","url":"https://github.com/wooorm/gemoji.git"},"scripts":{"test":"_mocha --reporter spec --check-leaks -u exports spec/gemoji.spec.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks -u exports spec/gemoji.spec.js","lint":"npm run-script lint-api && npm run-script lint-test && npm run-script lint-style","lint-api":"eslint index.js --env node --env browser --rule 'quotes: [2, single]'","lint-test":"eslint spec/gemoji.spec.js --env node --env mocha --rule 'quotes: [2, single], no-loop-func: false'","lint-style":"jscs index.js spec/gemoji.spec.js --reporter=inline","coverage":"istanbul cover node_modules/.bin/_mocha -- -- spec/gemoji.spec.js","make":"npm run-script lint && npm run-script coverage"},"bugs":{"url":"https://github.com/wooorm/gemoji/issues"},"homepage":"https://github.com/wooorm/gemoji","_id":"gemoji@0.0.3","_shasum":"89e6272a84bbb3716fa1105f8235b09ca805ef27","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"dist":{"shasum":"89e6272a84bbb3716fa1105f8235b09ca805ef27","tarball":"http://registry-npm.ywwl.com/gemoji/download/gemoji-0.0.3.tgz","integrity":"sha512-7LL4kCxyPmyttmjzdGZ8UyNNeJ0SSS29SgyVBswAb2YK3WP+N8pkTYCN537pJgaYaX2DuIJOqTE8iciQiIVQTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClDlkpzwkuypGrGrCd17vkwu3SwJKmxlwDQuni/90lKgIgOe7z+NuXxAfFTW0MK/QVIFjbdz64ICToGCVH1uCjUHI="}],"size":16541,"noattachment":false,"key":"/gemoji/-/gemoji-0.0.3.tgz"},"directories":{},"readme":"# gemoji\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nInfo on gemoji.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`gemoji`](#gemoji-1)\n    *   [`nameToEmoji`](#nametoemoji)\n    *   [`emojiToName`](#emojitoname)\n*   [Types](#types)\n*   [Data](#data)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [Notice](#notice)\n*   [License](#license)\n\n## What is this?\n\nThis package contains info on gemoji (**G**itHub **Emoji**).\nGemoji are the shortcodes that GitHub uses to represent emoji.\nFor example, `:grinning:` can be used for `😀`.\n\n## When should I use this?\n\nUse this package if you need:\n\n*   info on gemoji, such as associated tags, description, and\n    category\n*   to map between emoji and names and vice versa\n*   to list emoji or names\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install gemoji\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {gemoji} from 'https://esm.sh/gemoji@8'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {gemoji} from 'https://esm.sh/gemoji@8?bundle'\n</script>\n```\n\n## Use\n\nSee examples below.\n\n## API\n\nThis package exports the identifiers `gemoji`, `emojiToName`, and\n`nameToEmoji`.\nThere is no default export.\n\n### `gemoji`\n\nList of info objects (`Array<Gemoji>`).\nEach `Gemoji` has the following fields:\n\n*   `emoji` (`string`)\n    — example: `😀`\n*   `names` (`Array<string>`)\n    — example: `['grinning']`\n*   `tags` (`Array<string>`)\n    — example: `['smile', 'happy']`\n*   `description` (`string`)\n    — example: `grinning face`\n*   `category` (`string`)\n    — example: `Smileys & Emotion`\n\n###### Example\n\n```js\nimport {gemoji} from 'gemoji'\n\nconsole.log(gemoji)\n```\n\nYields:\n\n```js\n[\n  {\n    emoji: '😀',\n    names: ['grinning'],\n    tags: ['smile', 'happy'],\n    description: 'grinning face',\n    category: 'Smileys & Emotion'\n  },\n  {\n    emoji: '😃',\n    names: ['smiley'],\n    tags: ['happy', 'joy', 'haha'],\n    description: 'grinning face with big eyes',\n    category: 'Smileys & Emotion'\n  },\n  {\n    emoji: '😄',\n    names: ['smile'],\n    tags: ['happy', 'joy', 'laugh', 'pleased'],\n    description: 'grinning face with smiling eyes',\n    category: 'Smileys & Emotion'\n  },\n  // …\n]\n```\n\n### `nameToEmoji`\n\nMap of names (`100`) to emoji (`💯`) (`Record<string, string>`).\n\n###### Example\n\n```js\nimport {nameToEmoji} from 'gemoji'\n\nconsole.log(nameToEmoji.cat) //=> 🐱\nconsole.log(nameToEmoji.poop) //=> 💩\n```\n\n### `emojiToName`\n\nMap of emoji (`😀`) to names (`grinning`) (`Record<string, string>`).\n\n###### Example\n\n```js\nimport {emojiToName} from 'gemoji'\n\nconsole.log(emojiToName['🐶']) //=> dog\nconsole.log(emojiToName['\\uD83D\\uDCA9']) //=> hankey\n```\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports an additional type `Gemoji`.\n\n## Data\n\nSee [`support.md`][support] for what info is included.\n\nThe data is crawled from [`github/gemoji`][gh] and later processed for relevant\ninformation.\n\nNo images are included in this repository: the copyrighted material may or may\nnot be available on the users computer.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`words/emoji-emotion`](https://github.com/words/emoji-emotion)\n    — list of emoji rated for valence\n*   [`wooorm/emoticon`](https://github.com/wooorm/emoticon)\n    — info on ASCII emoticons\n*   [`wooorm/strip-skin-tone`](https://github.com/wooorm/strip-skin-tone)\n    — strip skin-tones from emoji\n*   [`wooorm.com/checkmoji`](https://wooorm.com/checkmoji/)\n    — check emoji across platforms\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## Notice\n\n`wooorm/gemoji` is not affiliated with **GitHub**.\n\nSee its [`github/gemoji`][gh-license] for info on GHs licensing.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/gemoji/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/gemoji/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/gemoji.svg\n\n[coverage]: https://codecov.io/github/wooorm/gemoji\n\n[downloads-badge]: https://img.shields.io/npm/dm/gemoji.svg\n\n[downloads]: https://www.npmjs.com/package/gemoji\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/gemoji.svg\n\n[size]: https://bundlephobia.com/result?p=gemoji\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[support]: support.md\n\n[gh]: https://github.com/github/gemoji\n\n[gh-license]: https://github.com/github/gemoji/blob/55a0080/LICENSE\n","publish_time":1403173894934,"_cnpm_publish_time":1403173894934,"dist-tags":{"latest":"8.1.0"}}