{"id":17141786,"url":"https://github.com/zmofei/emojily","last_synced_at":"2025-10-24T01:26:08.661Z","repository":{"id":57224846,"uuid":"149641870","full_name":"zmofei/emojily","owner":"zmofei","description":"transfer both text to emoji and emoji to text","archived":false,"fork":false,"pushed_at":"2018-09-25T06:14:23.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T06:19:30.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zmofei.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":"2018-09-20T16:53:57.000Z","updated_at":"2022-10-20T01:41:49.000Z","dependencies_parsed_at":"2022-09-06T13:22:30.973Z","dependency_job_id":null,"html_url":"https://github.com/zmofei/emojily","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmofei%2Femojily","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmofei%2Femojily/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmofei%2Femojily/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmofei%2Femojily/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmofei","download_url":"https://codeload.github.com/zmofei/emojily/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245236980,"owners_count":20582572,"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-10-14T20:27:06.419Z","updated_at":"2025-10-24T01:26:03.635Z","avatar_url":"https://github.com/zmofei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emojily\n\n[![Build Status](https://travis-ci.com/zmofei/emojily.svg?branch=master)](https://travis-ci.com/zmofei/emojily) [![codecov](https://codecov.io/gh/zmofei/emojily/branch/master/graph/badge.svg)](https://codecov.io/gh/zmofei/emojily) [![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE) [![npm](https://img.shields.io/npm/v/emojily.svg)](https://www.npmjs.com/package/emojily)\n\n\nEncode/Decode engine for text to emoji\n\n[Try it online 😛](https://zmofei.github.io/emojily/example/index.html) \n\n# Usage\n\n\n1. Install \n\n```Javascript\nnpm install emojily --save\n```\n\nor use from CDN for browser\n\n```\n\u003csrcipt type=\"text/javascript\" src=\"https://cdn.rawgit.com/zmofei/emojily/master/dist/emojily.js\"\u003e\u003c/script\u003e\n```\n\n2. encode text to emoji\n\n```javascript\nconst {encode} = require('emojily');\nencode('hello');\n// the output will be: 😎😃😜😃😙😃😠😃😠😄😁😚\n// every time it wil return defferent output even you encode same word.\n// eg:\n// \u003e encode('hello');\n// '😋😃😙😃😖😃😝😃😝😃😠😗'\n// \u003e encode('hello');\n// '😄😃😒😃😏😃😖😃😖😃😙😐'\n// \u003e encode('hello');\n// '😡😃😍😃😊😃😑😃😑😃😔😋'\n```\n\n3. decode from emoji\n\n```javascript\nconst {decode} = require('emojily');\ndecode('😋😃😙😃😖😃😝😃😝😃😠😗');\n// the output will be: 'hello'\n// tips: the emoji text must from encode, and you can not change any letter in the text.\n// eg:\n// if you are try to switch the last 2 letter 😋😃😙😃😖😃😝😃😝😃😠😗 =\u003e 😋😃😙😃😖😃😝😃😝😃😗😠\n// then you tru decode('😋😃😙😃😖😃😝😃😝😃😗😠');\n// it will throw an error like: 'Error Input, Please do not try to change any character'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmofei%2Femojily","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmofei%2Femojily","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmofei%2Femojily/lists"}