Current section
Files
Jump to
Current section
Files
README.md
# 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
import gleam/should
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