{"id":30292690,"url":"https://github.com/fennecdjay/cmojify","last_synced_at":"2025-08-17T00:37:41.940Z","repository":{"id":53105229,"uuid":"297638709","full_name":"fennecdjay/cmojify","owner":"fennecdjay","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-06T15:26:39.000Z","size":906,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-06-19T13:07:18.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fennecdjay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-22T12:16:51.000Z","updated_at":"2022-09-19T11:21:58.000Z","dependencies_parsed_at":"2022-09-12T17:50:16.139Z","dependency_job_id":null,"html_url":"https://github.com/fennecdjay/cmojify","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/fennecdjay/cmojify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fennecdjay%2Fcmojify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fennecdjay%2Fcmojify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fennecdjay%2Fcmojify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fennecdjay%2Fcmojify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fennecdjay","download_url":"https://codeload.github.com/fennecdjay/cmojify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fennecdjay%2Fcmojify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270791276,"owners_count":24645782,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-17T00:37:40.670Z","updated_at":"2025-08-17T00:37:41.918Z","avatar_url":"https://github.com/fennecdjay.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cmojify\n\n![Cmojify in action](/img/example.png)\n\n## What is it?\n\nCmojify started as a challenge fennecdjay did to create a textual API for emojis in under 10 minutes.\n\nAfter some improvements, it is now a library that allows you to transform any \"cmoji\" string into a processed one suitable for printing and other purposes.\n\n## How do I use it?\n\nThe API is a singular function, `cmojify`. This takes 3 parameters: an output buffer, its length, and the input \"cmoji\" string.\n\nThe first two parameters can be passed with:\n```c\nchar output_buffer[whatever length];\ncmojify(output_buffer, sizeof(output_buffer), __);\n```\n\nThe last parameter is just the cmoji source string.\n\n```c\nchar output_buffer[whatever length];\ncmojify(output_buffer, sizeof(output_buffer), \"Cmojify is :star:!\");\n```\n\n## What's a \"cmoji\" string?\n\nThe strings given to the `cmojify` function are normal C strings, but they have a special syntax. If an emoji is named between two `:` then it is replaced with that emoji. In the example above, `:art:` is replaced with `🎨`.\n\nYou can escape `:` using a backslash (two backslashes in a C string), and you can escape backslashes with another backslash (four backslashes in a C string).\n\n## Using Cmojify in your own project\n\n### Using Cmojify as a stand-alone library\n\nTo use Cmojify as a static library, simply run:\n```sh\ngit clone https://github.com/fennecdjay/cmojify\ncd cmojify\nmake\n```\nThis will build the library `libcmojify.a`.\n\n### Using Cmojify in an existing project\n\nTo add Cmojify to an existing project, make use of git submodules:\n\n```sh\ngit submodule add https://github.com/fennecdjay/cmojify\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffennecdjay%2Fcmojify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffennecdjay%2Fcmojify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffennecdjay%2Fcmojify/lists"}