Packages

Base64 is so 1999, isn't there something better?

Current section

Files

Jump to
ecoji README.md
Raw

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