package emoji
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=5e27588e5ca24d338e629ee89160bf15
sha512=be0edf6c62a8b76c7c160de91731e90863eea883396ed8faf71a88014f3bf1a600a8314f4772bb8332d45fa2eea1478bd5cf7e9d30b86b2268abbf6c8266547a
Description
OCaml library providing byte sequences of all the Unicode emoji characters and sequences sourced from unicode.org
README
Emoji
OCaml library providing byte sequences of all the Unicode (v17.0) emoji characters and sequences
$ opam install emojiYou can see them by printing to the screen:
# Emoji.distorted_face;;
- : string = ""
# Emoji.hairy_creature;;
- : string = ""
# Emoji.orca;;
- : string = ""You can also get all emojis from the same category or subcategory:
# let best_animals = Emoji.sub_category_animal_reptile;;
val best_animals : string array =
[|"🐊"; "🐉"; "🐲"; "🦎"; "🦕"; "🐍"; "🦖"; "🐢"|]Using ocp-browser shows the emoji

Development
To generate emoji.ml, first update the source html files:
$ wget "https://www.unicode.org/emoji/charts/full-emoji-list.html"
$ wget "https://www.unicode.org/emoji/charts/full-emoji-modifiers.html"then run:
$ dune exec gencode/gencode.exe > src/emoji.mltest with dune runtest, you can then dune promote to apply mdx changes to keep this file up to date.
Dev Dependencies (4)
-
odoc
with-doc -
uutf
with-dev-setup -
lambdasoup
with-dev-setup -
mdx
with-test
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building emoji with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 3.0.1 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure