{"id":13530246,"url":"https://github.com/ded/emojize","last_synced_at":"2025-04-11T15:05:17.108Z","repository":{"id":16655530,"uuid":"19410999","full_name":"ded/emojize","owner":"ded","description":"Unicode to emoji conversion utility for Node.js","archived":false,"fork":false,"pushed_at":"2015-09-18T16:31:56.000Z","size":7801,"stargazers_count":109,"open_issues_count":2,"forks_count":21,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-25T11:11:29.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ded.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-03T19:55:30.000Z","updated_at":"2024-03-26T17:50:27.000Z","dependencies_parsed_at":"2022-09-06T10:41:23.449Z","dependency_job_id":null,"html_url":"https://github.com/ded/emojize","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ded%2Femojize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ded%2Femojize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ded%2Femojize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ded%2Femojize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ded","download_url":"https://codeload.github.com/ded/emojize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429063,"owners_count":21101780,"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":"2024-08-01T07:00:46.557Z","updated_at":"2025-04-11T15:05:17.084Z","avatar_url":"https://github.com/ded.png","language":"CSS","funding_links":[],"categories":["JS/Node.js","Emojis"],"sub_categories":[],"readme":"## Emojize\nHigh resolution, unicode (emoji) to html conversion utility\n\n``` sh\nnpm install emojize --save\n```\n\n``` js\nvar convert = require('emojize').emojize\nvar html = convert('Haay 😜. Just getting ☕. But maybe 🍻 at 🕘🌜 is that 🆒')\n```\n\n### Browser usage with Ender\n\n``` sh\nender add emojize\n```\n\n#### Note\nUse of this library requires `\u003cmeta charset='utf-8'\u003e` encoding if used in a browser.\n\n``` html\n\u003chead\u003e\n  \u003cmeta charset='utf-8'\u003e\n  \u003clink href='sprite/emoji.css' type='text/css'\u003e\n  \u003cscript src='ender.js'\u003e\u003c/script\u003e\n\u003c/head\u003e\n```\n\n``` js\nvar convert = require('emojize').emojize\ndocument.getElementById('content').innerHTML = convert('Haay 😜')\n```\n\n### Sprite vs Image\n`emojize` defaults to sprite based conversion which ultimately requires the developer to include the `sprite/emoji.css` and upload the `emoji.png` along side the file. You could otherwise include all images found in [`img/`](img/) and pass in flag to the second argument to `emojize`\n\n``` js\nvar emo = require('emojize')\nemo.base('images/emojis/')\nemo.emojize('Haay 😜', true)\n\n/**\n * outputs:\n * 'Haay \u003cimg src=\"images/emojis/_1f61c.png\"\u003e'\n */\n```\n\n### Examples\n\n``` sh\nmake build\nmake example\nopen http://localhost:3000/example.jade\n```\n\n![Screenshot](http://cl.ly/image/0L3I2y2v0A3D/Screen%20Shot%202014-05-03%20at%202.19.32%20PM.png)\n\n### Sizing\nEach emoji defaults to `64px` × `64px` which may not always be desired. Thus, consider the following practice. Example assumes LESS.\n\n``` css\n.quarter { zoom: 0.25 }\n.half { zoom: 0.5 }\n.three-quarter { zoom: 0.75 }\n.full { zoom: 1 }\n\n@media screen and (max-width: 768px) {\n  .emoji {\n    .quarter()\n  }\n}\n\n@media screen and (max-width: 992px) {\n  .emoji {\n    .half()\n  }\n}\n@media screen and (max-width: 1200px) {\n  .emoji {\n    .three-quarter()\n  }\n}\n@media screen and (max-width: 1600px) {\n  .emoji {\n    .full()\n  }\n}\n\n```\n\n#### Credits\nMuch thanks to [Gemoji project](https://github.com/github/gemoji) for high resolution images and [Apple Inc.](http://apple.com) for Artwork. See [License](https://github.com/github/gemoji/blob/master/LICENSE)\n\nHappy Emojizing!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fded%2Femojize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fded%2Femojize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fded%2Femojize/lists"}