{"id":29376538,"url":"https://github.com/twitter/twemoji-parser","last_synced_at":"2025-07-09T22:43:29.166Z","repository":{"id":33837334,"uuid":"151306176","full_name":"twitter/twemoji-parser","owner":"twitter","description":"A simple library for identifying emoji entities within a string in order to render them as Twemoji.","archived":false,"fork":false,"pushed_at":"2024-04-22T21:01:27.000Z","size":525,"stargazers_count":161,"open_issues_count":23,"forks_count":49,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-05-09T19:34:59.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twitter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-02T18:49:34.000Z","updated_at":"2024-05-09T07:37:00.000Z","dependencies_parsed_at":"2023-01-15T02:52:23.662Z","dependency_job_id":null,"html_url":"https://github.com/twitter/twemoji-parser","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/twitter/twemoji-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitter%2Ftwemoji-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitter%2Ftwemoji-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitter%2Ftwemoji-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitter%2Ftwemoji-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twitter","download_url":"https://codeload.github.com/twitter/twemoji-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twitter%2Ftwemoji-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504617,"owners_count":23618831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-09T22:43:28.409Z","updated_at":"2025-07-09T22:43:29.150Z","avatar_url":"https://github.com/twitter.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twemoji Parser [![Build Status](https://travis-ci.com/twitter/twemoji-parser.svg)](https://travis-ci.com/twitter/twemoji-parser)\n\nA simple library for identifying emoji entities within a string in order to render them as Twemoji.\n\nFor example, this parser is used within the rendering flow for Tweets and other text on [mobile.twitter.com](https://mobile.twitter.com)\n\n## Setup\nAdd `twemoji-parser` as a dependency to your project:\n```\nyarn add twemoji-parser\n```\n\nOr, to work directly in this repo, clone it and run `yarn install` from the repo root.\n\n## Usage\nThe [tests](src/__tests__/index.test.js) are intended to serve as a more exhaustive source of documentation, but the general idea is that the parser takes a string and returns an array of the emoji entities it finds:\n```js\nimport { parse } from 'twemoji-parser';\nconst entities = parse('I 🧡 Twemoji! 🥳');\n/*\nentities = [\n  {\n    url: 'https://twemoji.maxcdn.com/v/latest/svg/1f9e1.svg',\n    indices: [ 2, 4 ],\n    text: '🧡',\n    type: 'emoji'\n  },\n  {\n    url: 'https://twemoji.maxcdn.com/v/latest/svg/1f973.svg',\n    indices: [ 12, 14 ],\n    text: '🥳',\n    type: 'emoji'\n  }\n]\n*/\n```\n## Authors\n\n* Nathan Downs \u003cndowns [at] twitter [dot] com\u003e\n\nFollow [@TwitterOSS](https://twitter.com/twitteross) on Twitter for updates.\n\n## Contributing\n\nWe feel that a welcoming community is important and we ask that you follow Twitter's\n[Open Source Code of Conduct](https://github.com/twitter/code-of-conduct/blob/master/code-of-conduct.md)\nin all interactions with the community.\n\n## Support\n\nCreate a [new issue](https://github.com/twitter/twemoji-parser/issues/new) on GitHub.\n\n## Security Issues?\nPlease report sensitive security issues via Twitter's bug-bounty program (https://hackerone.com/twitter) rather than GitHub.\n\n## License\n\nMIT https://github.com/twitter/twemoji-parser/blob/master/LICENSE.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwitter%2Ftwemoji-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwitter%2Ftwemoji-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwitter%2Ftwemoji-parser/lists"}