https://github.com/lpil/ecoji
Base64 is so 1999, isn't there something better?
https://github.com/lpil/ecoji
gleam
Last synced: 4 months ago
JSON representation
Base64 is so 1999, isn't there something better?
- Host: GitHub
- URL: https://github.com/lpil/ecoji
- Owner: lpil
- License: apache-2.0
- Created: 2020-06-11T17:43:56.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-03-12T23:08:23.000Z (about 2 years ago)
- Last Synced: 2025-01-22T05:41:50.155Z (over 1 year ago)
- Topics: gleam
- Language: Gleam
- Homepage:
- Size: 39.1 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Ecoji 🏣🔉🦐🔼
Ecoji encodes data as 1024 [emojis][emoji]. It's base1024 with an emoji
character set, based off the [original version][ecoji-go] written in Go.
It's also an example of how we can manipulate bit strings in Gleam!
### Encoding:
```gleam
import ecoji
pub fn main() {
ecoji.encode("Base64 is so 1999, isn't there something better?\n")
// -> "🏗📩🎦🐇🎛📘🔯🚜💞😽🆖🐊🎱🥁🚄🌱💞😭💮🇵💢🕥🐭🔸🍉🚲🦑🐶💢🕥🔮🔺🍉📸🐮🌼👦🚟🥴📑",
}
```
[emoji]: https://unicode.org/emoji/
[ecoji-go]: https://github.com/keith-turner/ecoji