{"id":15686825,"url":"https://github.com/lambdalisue/deno-github-emoji","last_synced_at":"2025-03-30T11:27:25.992Z","repository":{"id":231860937,"uuid":"657307312","full_name":"lambdalisue/deno-github-emoji","owner":"lambdalisue","description":"🦕 GitHub emoji library for deno.","archived":false,"fork":false,"pushed_at":"2024-04-06T10:42:30.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-07T00:14:30.968Z","etag":null,"topics":["deno","emoji","github"],"latest_commit_sha":null,"homepage":"https://deno.land/x/github_emoji","language":"TypeScript","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/lambdalisue.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-06-22T19:20:22.000Z","updated_at":"2024-05-09T18:41:20.000Z","dependencies_parsed_at":"2024-04-08T02:45:35.037Z","dependency_job_id":null,"html_url":"https://github.com/lambdalisue/deno-github-emoji","commit_stats":null,"previous_names":["lambdalisue/deno-github-emoji"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-github-emoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-github-emoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-github-emoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdalisue%2Fdeno-github-emoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambdalisue","download_url":"https://codeload.github.com/lambdalisue/deno-github-emoji/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246311207,"owners_count":20757088,"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":["deno","emoji","github"],"created_at":"2024-10-03T17:41:28.977Z","updated_at":"2025-03-30T11:27:25.966Z","avatar_url":"https://github.com/lambdalisue.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-emoji\n\n[![jsr](https://img.shields.io/jsr/v/%40lambdalisue/github-emoji?logo=javascript\u0026logoColor=white)](https://jsr.io/@lambdalisue/github-emoji)\n[![denoland](https://img.shields.io/github/v/release/lambdalisue/deno-github-emoji?logo=deno\u0026label=denoland)](https://github.com/lambdalisue/deno-github-emoji/releases)\n[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/github_emoji/mod.ts)\n[![Test](https://github.com/lambdalisue/deno-github-emoji/workflows/Test/badge.svg)](https://github.com/lambdalisue/deno-github-emoji/actions?query=workflow%3ATest)\n\nGitHub emoji library for TypeScript.\n\n## Usage\n\nGet a emoji string of a name (e.g. `smile`), use `emojiOf` function like:\n\n```typescript\nimport { emojiOf } from \"https://deno.land/x/github_emoji@$MODULE_VERSION/mod.ts\";\n\nconsole.log(emojiOf(\"smile\"));\n// -\u003e ☺️\n```\n\nThe `emojiOf` require `EmojiName` instead of `string` so invalid emoji name\nbecome TypeScript error.\n\n```typescript\nimport {\n  EmojiName,\n  emojiOf,\n} from \"https://deno.land/x/github_emoji@$MODULE_VERSION/mod.ts\";\n\nconsole.log(emojiOf(\"smile\")); // OK\n//console.log(emojiOf(\"this-is-not-valid-emoji-name\")); // TypeScript error\nconsole.log(emojiOf(\"this-is-not-valid-emoji-name\" as EmojiName)); // OK but returns undefined\n```\n\nReplace all valid `:{name}:` like strings (e.g. `:smile:`) in a text with emoji\nstrings, use `emojify` function like:\n\n```typescript\nimport { emojify } from \"https://deno.land/x/github_emoji@$MODULE_VERSION/mod.ts\";\n\nconsole.log(emojify(\"Hello :world: :smile:\")); // :world: is not valid emoji\n// -\u003e Hello :world: ☺️\n```\n\nSee API documentation for more details and functions.\n\n## License\n\nThe code follows MIT license written in [LICENSE](./LICENSE). Contributors need\nto agree that any modifications sent in this repository follow the license.\n\n## Special Thanks\n\nThis library is strongly inspired by\n[rhysd/node-github-emoji](https://github.com/rhysd/node-github-emoji).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdalisue%2Fdeno-github-emoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdalisue%2Fdeno-github-emoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdalisue%2Fdeno-github-emoji/lists"}