{"id":38676417,"url":"https://github.com/jo-sm/base_emoji","last_synced_at":"2026-01-17T10:01:10.427Z","repository":{"id":29895000,"uuid":"33440608","full_name":"jo-sm/base_emoji","owner":"jo-sm","description":"The most useful way to encode your data!","archived":false,"fork":false,"pushed_at":"2015-04-29T12:01:39.000Z","size":124,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-28T17:02:16.092Z","etag":null,"topics":["emoji","encoding","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/jo-sm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-05T12:45:40.000Z","updated_at":"2020-09-03T23:25:41.000Z","dependencies_parsed_at":"2022-08-23T04:50:44.914Z","dependency_job_id":null,"html_url":"https://github.com/jo-sm/base_emoji","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jo-sm/base_emoji","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-sm%2Fbase_emoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-sm%2Fbase_emoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-sm%2Fbase_emoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-sm%2Fbase_emoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jo-sm","download_url":"https://codeload.github.com/jo-sm/base_emoji/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jo-sm%2Fbase_emoji/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"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":["emoji","encoding","ruby"],"created_at":"2026-01-17T10:00:53.310Z","updated_at":"2026-01-17T10:01:10.413Z","avatar_url":"https://github.com/jo-sm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"BaseEmoji: Encode your text as emoji\n====================================\n\n## What is it?\n\n`BaseEmoji` is a way to encode your text into emoji. It's just like encoding into base64. You can encode `foobar` into `😾🚩🍧🏁🍁🏈🚥🍧🎅`!\n\nAdditionally, `BaseEmoji` also contains utilities for encoding and decoding `base64` (RFC), `base32` (RFC, not Crockford), `base36`, (strings/integers) `base58` (strings/integers, using the Flickr alphabet), and `base16` (RFC). \n\n## Who might use it?\n\nAnyone who has a use for any of the above mentioned encoding schemes.\n\n## Does it save space?\n\nJust like `base64` and `base32`, `base_emoji`'s encoded strings are different and use a different amount of space compared to the original string:\n\n```ruby\n\"foobar\".bytesize # =\u003e 6\nencoded = BaseEmoji.encode_base_emoji(\"foobar\") # =\u003e \"😾🚩🍧🏁🍁🏈🚥🍧🎅\"\nencoded.bytesize # =\u003e 36\n\n\"Hello world\".bytesize # =\u003e 11\nencoded = BaseEmoji.encode_base_emoji(\"Hello world\") # =\u003e \"😻🔋🍆🐢👺💥🎷😻💯😤🍻😎💥👺🎅😾\"\nencoded.bytesize # =\u003e 64\n\n\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent pulvinar.\".bytesize # =\u003e 75\nencoded = BaseEmoji.encode_base_emoji(\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent pulvinar.\") # =\u003e \"💥😋🔫😳⛔🍕🏈💨😈😘🍆🍳🍻💨🚴😻😾🌊🎴🚴🍕😈😤👺🙅👾🎴😃👺😀🙅😾😖😄💁🚩🍧💨🎭👾🎭🎃😘🚩🌊⭐👺😱💥😀🌊🍻💣🎷🐢💯😖🍕👺🏮😡🍰🚴💣🍻🙈💣🎷😋⭐🏈🍺🍕😱😈😾😉😤🍑😈🙈😉🚩😾🎷😍🐢💁🎅⭐😖😘😋😘😱🐢😤🎴😾😤💯🙅😍\"\nencoded.bytesize # =\u003e 408\n```\n\nAs you can see, encoding in base emoji is on average 6x larger than the encoded string. \n\n## Testing\n\nThis library uses RSpec to run its tests. To run the test suite, run `rspec --format doc`\n\n## License\n\nMIT\n\n## Copyright\n\n2015 Joshua Smock","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjo-sm%2Fbase_emoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjo-sm%2Fbase_emoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjo-sm%2Fbase_emoji/lists"}