{"id":16862652,"url":"https://github.com/nespecc/emoji-parser","last_synced_at":"2025-04-11T08:57:42.618Z","repository":{"id":197095301,"uuid":"66657698","full_name":"neSpecc/emoji-parser","owner":"neSpecc","description":"Multiplatform Emoji client","archived":false,"fork":false,"pushed_at":"2019-01-29T13:03:53.000Z","size":7014,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T06:23:58.684Z","etag":null,"topics":["css","emoji","emoji-parser","fallback-images","javascript"],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/neSpecc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-08-26T15:16:47.000Z","updated_at":"2023-02-19T03:57:56.000Z","dependencies_parsed_at":"2023-09-29T01:03:09.051Z","dependency_job_id":null,"html_url":"https://github.com/neSpecc/emoji-parser","commit_stats":null,"previous_names":["nespecc/emoji-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neSpecc%2Femoji-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neSpecc%2Femoji-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neSpecc%2Femoji-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neSpecc%2Femoji-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neSpecc","download_url":"https://codeload.github.com/neSpecc/emoji-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248363554,"owners_count":21091380,"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":["css","emoji","emoji-parser","fallback-images","javascript"],"created_at":"2024-10-13T14:36:15.721Z","updated_at":"2025-04-11T08:57:42.599Z","avatar_url":"https://github.com/neSpecc.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multiplatform Emoji client 😎\n\nThis Module allows you to use Emoji in your Web application interface.\n\nIf Emoji are natively supported by user's paltform, it will be rendered as-is. Otherwhise Module will provide fallback images.\n\n## User Guide\nTo use Emoji in your interface, follow this steps.\n\n- Include `specc-emoji.js` on your site. Bottom of the `\u003cbody\u003e` tag prefered.\n- Mark all Elements which may content Emoji with `js-emoji-included` class name.\n- Fire\n```javascript\nEmoji.parse();\n```\n\nThat's it.\n\n😏\n\n### How it works 🤔\n\nFirst of all it checks for native Emoji supporting. You can access this feature by `Emoji.supported` property\n```javascript\nif ( Emoji.supported ){\n\tconsole.log('Emoji natively supported.');\n} else {\n\tconsole.log('Emoji does not supported.');\n}\n```\n\nIf user's platform does not supports Emoji, Module will find and relpace all smiles with fallback images that looks like\n\n```hmtl\n\u003cem class=\"emoji\" data-emoji=\"😏\"\u003e\u003c/em\u003e\n```\n\nCutted Unicode symbols stores in `data-emoji` attribute. Next, CSS class `emoji.css` will stylize this `\u003cem\u003e` tag with fallback images.\n\n\nNote that Module requires special CSS file `emoji.css`, which placed in `../css/` (from original script) directory. If you need to specify your own style location, open `specc-emoji.js` and change `CSS_FILE_PATH` property to your path.\n```javascript\n/**\n* @private\n* Path where styles stored\n*/\nvar CSS_FILE_PATH = 'css/emoji.css';\n```\n\nSame thing with CSS file: it uses fallback images by `../emoji/\u003cFILENAME\u003e` address.\n\n\n## Example\n\nOpen `example.html` file.\n\n## Questions\n\nFell free to give me a feedback on \u003ca href=\"mailto::specc.dev@gmail.com\"\u003especc.dev@gmail.com\u003c/a\u003e 😼\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnespecc%2Femoji-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnespecc%2Femoji-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnespecc%2Femoji-parser/lists"}