{"name":"gemoji","version":"1.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"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"files":["index.js","data/gemoji.json"],"devDependencies":{"browserify":"^11.0.0","eslint":"^1.0.0","esmangle":"^1.0.0","istanbul":"^0.3.0","jscs":"^2.0.0","jscs-jsdoc":"^1.0.0","markdown-table":"^0.4.0","mdast":"^1.0.0","mdast-comment-config":"^1.0.0","mdast-github":"^1.0.0","mdast-lint":"^1.0.0","mdast-slug":"^1.0.0","mdast-validate-links":"^1.0.0","mocha":"^2.0.0","string-width":"^1.0.1"},"scripts":{"test-api":"mocha --check-leaks test.js","test-coverage":"istanbul cover _mocha -- test.js","test-travis":"npm run test-coverage","test":"npm run test-api","lint-api":"eslint .","lint-style":"jscs --reporter inline .","lint":"npm run lint-api && npm run lint-style","make":"npm run lint && npm run test-coverage","prebuild-data":"curl --connect-timeout 5 --max-time 10 -H 'Accept: application/vnd.github.v3.raw' -L https://api.github.com/repos/github/gemoji/contents/db/emoji.json -o data/emoji.json || exit 0","build-data":"node script/build-data.js","postbuild-data":"node script/build-support.js","bundle":"browserify index.js --no-builtins -s gemoji > gemoji.js","postbundle":"esmangle gemoji.js > gemoji.min.js","build-md":"mdast . --quiet","build":"npm run build-data && npm run bundle && npm run build-md"},"gitHead":"9c8b59232deec4dbda5b42042f974f5d0e209a75","bugs":{"url":"https://github.com/wooorm/gemoji/issues"},"homepage":"https://github.com/wooorm/gemoji#readme","_id":"gemoji@1.0.0","_shasum":"ce408150368cbcfffda30ad5715aedcc65eb0799","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"ce408150368cbcfffda30ad5715aedcc65eb0799","tarball":"http://registry-npm.ywwl.com/gemoji/download/gemoji-1.0.0.tgz","integrity":"sha512-Bd5tuxGKu2VQKxPWlmzZv8UGIx2kNmMBzbyJ9MbofannySr+IJFJURC5GedlYPnfNV9VDMIPRjmTkP6tf/1Ofg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIChTqylzK0OJV7XuPZYJ+fM5uDugS7+NMX+C2tAxO/qLAiEAk5ovKSNTif+UvkhEYH49t+LO0TfTN6ox0YnhufadZ7w="}],"size":19265,"noattachment":false,"key":"/gemoji/-/gemoji-1.0.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"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":1440356269367,"_cnpm_publish_time":1440356269367,"dist-tags":{"latest":"8.1.0"}}