{"id":45591007,"url":"https://github.com/2sem/ts-unicode-emojis","last_synced_at":"2026-02-23T12:32:53.012Z","repository":{"id":58065388,"uuid":"529163678","full_name":"2sem/ts-unicode-emojis","owner":"2sem","description":"Sectioned Emoji Collection ","archived":false,"fork":false,"pushed_at":"2022-09-09T10:46:24.000Z","size":326,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-14T03:21:55.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/2sem.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}},"created_at":"2022-08-26T07:43:21.000Z","updated_at":"2024-03-06T02:36:41.000Z","dependencies_parsed_at":"2022-09-02T08:13:12.978Z","dependency_job_id":null,"html_url":"https://github.com/2sem/ts-unicode-emojis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/2sem/ts-unicode-emojis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2sem%2Fts-unicode-emojis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2sem%2Fts-unicode-emojis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2sem%2Fts-unicode-emojis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2sem%2Fts-unicode-emojis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2sem","download_url":"https://codeload.github.com/2sem/ts-unicode-emojis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2sem%2Fts-unicode-emojis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29742754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-02-23T12:32:49.323Z","updated_at":"2026-02-23T12:32:53.003Z","avatar_url":"https://github.com/2sem.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ts-unicode-emojis\n\n\u003e Emoji unicode collection type and loader\n\n[![NPM](https://img.shields.io/npm/v/ts-unicode-emojis.svg)](https://www.npmjs.com/package/ts-unicode-emojis) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n### NPM\n```bash\nnpm install --save ts-unicode-emojis\n```\n\n### Yarn\n```bash\nyarn add --save ts-unicode-emojis\n```\n\n## Usage\n\n### Generate JSON\n```ts\nimport { readFileSync } from \"fs\";\nimport { loadEmojiCategories } from \"../src\";\n\nconst json = readFileSync('./emoji.json').toString()\n\nconst emojiCategires = loadEmojiCategories(json, {\n    apple: true,\n    google: true,\n    facebook: false,\n    twitter: false\n})\n\nconsole.log(JSON.stringify(emojiCategires))\n```\n### Parse\n```ts\nimport { readFileSync } from \"fs\";\nimport { EmojiCategory } from \"ts-unicode-emojis\";\n\n// emoji_categories.json: generated json file\nconst json = readFileSync('./emoji_categories.json').toString()\n\nconsole.log('json size', json.length)\n\nconst emojiCategires: EmojiCategory[] = JSON.parse(json)\n\nconsole.log('emoji categiry count', emojiCategires.length)\n\nfor(const category of emojiCategires) {\n    console.log('emoji category', 'name', category.name, 'sub categories', category.subCategories.length)\n    for(const subCategory of category.subCategories){\n        console.log('sub category', 'name', subCategory.name, 'emoji count', subCategory.emojis.length)\n        for(const emoji of subCategory.emojis) {\n            console.log('emoji', 'name', emoji.name, `letter[${String.fromCodePoint(...emoji.unicodes)}]`)\n        }\n    }\n}\n```\n\n## License\n\nMIT © [2sem](https://github.com/2sem)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2sem%2Fts-unicode-emojis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2sem%2Fts-unicode-emojis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2sem%2Fts-unicode-emojis/lists"}