{"name":"gemoji","version":"2.0.0","description":"GitHub emoji: gemoji","license":"MIT","keywords":["gemoji","emoji","unicode","name","shortcode","tag","alias","name"],"repository":{"type":"git","url":"git+https://github.com/wooorm/gemoji.git"},"bugs":{"url":"https://github.com/wooorm/gemoji/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js","data/gemoji.json"],"devDependencies":{"browserify":"^13.0.0","esmangle":"^1.0.0","markdown-table":"^1.0.0","nyc":"^8.3.0","remark-cli":"^2.0.0","remark-preset-wooorm":"^1.0.0","request":"^2.75.0","string-width":"^1.0.1","tape":"^4.6.0","xo":"^0.16.0"},"scripts":{"build-md":"remark readme.md --quiet --frail","build-crawl":"node script/crawl-data","build-data":"node script/build-data","build-support":"node script/build-support","build-bundle":"browserify index.js --bare -s gemoji > gemoji.js","build-mangle":"esmangle gemoji.js > gemoji.min.js","build":"npm run build-crawl && npm run build-data && npm run build-support && npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"rules":{"guard-for-in":"off"},"ignores":["gemoji.js"]},"remarkConfig":{"output":true,"presets":"wooorm"},"gitHead":"741c2ccee86a0053146fb187afe89572bbd03dab","homepage":"https://github.com/wooorm/gemoji#readme","_id":"gemoji@2.0.0","_shasum":"0565bd2d01a1219eddd55f74be1a0d3503fd8703","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"0565bd2d01a1219eddd55f74be1a0d3503fd8703","tarball":"http://registry-npm.ywwl.com/gemoji/download/gemoji-2.0.0.tgz","integrity":"sha512-ZsU2aPzr76geNH6wupq83INLkQtt0O+U+chGiHSb6cRlSf+b7TaeS2L4mPl3hT/7tP0TN0hJpe7bn0gBKu85kA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMb58C94V0wRYoI6OAo9Y1h9kTebjJ6Yh7IqbGrH/GOQIgCXf1xo6vue2HS6BpNPQg8dMm3bBvnkO0EGrXininzoo="}],"size":18639,"noattachment":false,"key":"/gemoji/-/gemoji-2.0.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/gemoji-2.0.0.tgz_1474221001122_0.46932466072030365"},"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":1474221003061,"_cnpm_publish_time":1474221003061,"dist-tags":{"latest":"8.1.0"}}