{"id":18648023,"url":"https://github.com/cezarsmpio/emojer","last_synced_at":"2025-04-11T13:31:08.039Z","repository":{"id":57224713,"uuid":"96561386","full_name":"cezarsmpio/emojer","owner":"cezarsmpio","description":"Smiles to emojis. Natively. Browsers and Node.js.","archived":false,"fork":false,"pushed_at":"2017-07-19T16:26:46.000Z","size":85,"stargazers_count":15,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-16T04:49:54.248Z","etag":null,"topics":["emojer","emoji","es2015","es6","javascript","js","parser"],"latest_commit_sha":null,"homepage":"https://cezarsmpio.github.io/emojer/","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/cezarsmpio.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":"2017-07-07T17:34:11.000Z","updated_at":"2021-11-03T18:29:16.000Z","dependencies_parsed_at":"2022-09-06T13:13:28.282Z","dependency_job_id":null,"html_url":"https://github.com/cezarsmpio/emojer","commit_stats":null,"previous_names":["cezarlz/emojer"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarsmpio%2Femojer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarsmpio%2Femojer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarsmpio%2Femojer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarsmpio%2Femojer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cezarsmpio","download_url":"https://codeload.github.com/cezarsmpio/emojer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223469750,"owners_count":17150419,"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":["emojer","emoji","es2015","es6","javascript","js","parser"],"created_at":"2024-11-07T06:28:32.957Z","updated_at":"2024-11-07T06:28:33.708Z","avatar_url":"https://github.com/cezarsmpio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emojer\n\n\u003e Smiles to emojis. Natively.\n\nEmojer is a simple library to transform your smiles like `:)` to :smiley:.\n\nWe use the `String.fromCodePoint` method to transform char code to the emoji. Not images.\n\nTo use it, is very simple, let's take a look:\n\n```\nconst rock = emojer.parse('My rock text :rock: ;P');\n```\n\nThe result will be: My rock text :metal: :stuck_out_tongue_winking_eye:\n\n## Demo\n\n* Playground: https://cezarlz.github.io/emojer/\n* Chat example: https://codepen.io/CezarLuiz0/pen/xrNKwm\n\n## Install\n\n```\nnpm install emojer.js --save\n```\n\n```\nyarn add emojer.js\n```\n\n## API\n\n#### emojer.parse(string: text)\n\nParse the string to the string \"emojed\".\n\nExample:\n\n```\nemojer.parse('Hello guys :D');\n```\n\n#### emojer.addEmoji(string: smile, number: charCode)\n\nAdd a new emoji to the list to be replaced by the charCode.\n\nExample:\n\n```\nemojer.addEmoji(\"--'\", 0x1f612);\n```\n\nYou can check the full list of emojis and their unicodes [here](http://unicode.org/emoji/charts/full-emoji-list.html).\n\n#### emojer.setConfigs(object: newConfigs)\n\nEmojer uses configs to do somethings, like add css classes to the emoji and a option to render the emojis with a HTML wrapper.\n\nThe default configs are:\n```\n{\n  span_classes: [],\n  html: true\n}\n```\n\nYou can use it:\n```\nemojer.setConfigs({\n  span_classes: ['foo', 'bar''],\n  html: false\n});\n```\n\nBy default, emojer adds the `emojer-icon` css class in every emoji rendered if the flag `html` is `true`.\n\n## Emojis Available\n\n```\n:) :] =) =] (: [: (= [= :3 :D =D ;) ;] (H) :* :| :O :P ;P :'( :'[ )': ]': :# (A) :( :[ :@ (6) +( +[ \u003c3 S2 (L) (8) (Y) (OK) :rock: :-) :$ ;-) :-* ;* =-O :-P :/ :-P *_* +_+ \u003e_\u003c O_O\n```\n\n## Contributing\n\nJust clone, yarn, `npm start`, make your magic, push and open a pull request. Voilá!\n\n## Browser and OS Support\n\nCheck the support of native emojis [here](http://caniemoji.com/).\n\n---\n\nMade with :heart:","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcezarsmpio%2Femojer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcezarsmpio%2Femojer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcezarsmpio%2Femojer/lists"}