node-emoji 1.0.7

Convert `:emoji:` to Unicode using GitHub's and EmojiDB's emoji names
Documentation
  • Coverage
  • 83.33%
    5 out of 6 items documented1 out of 5 items with examples
  • Size
  • Source code size: 190.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 630.2 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • black-puppydog/node-emoji-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • black-puppydog

Expanded emoji set for Rust

Full, up-to-date database of emojis which have Unicode equivalents, taken from GitHub emoji and emoji-data which contains a few more entries. If you spot noteworthy updates in either of these and don't see the changes reflected here, please open an issue. 🙏

This is a fork of gh-emoji, which remains scoped to track exactly the short-codes from the gemoji package.

Pre-generated and hashed at compile time for fast lookup.

Useful when rendering GitLab/GitHub-flavored Markdown, although this crate does not parse any Markdown itself. I needed this for a re-implementation of ssb-markdown which uses node-emoji. However, it seems from cursory testing that node-emoji is also used in other popular apps like e.g. Slack, which means this might be more broadly useful. If you find discrepancies between node-emoji and this crate, file an issue. 🙂

Example usage

// yes, emoji-data has an extra robot_face entry! 🤖
assert_eq!(gh_emoji::get("robot"), gh_emoji::get("robot_face"));
let replacer = gh_emoji::Replacer::new();
let text = replacer.replace_all(":crocodile:, see you in a while!");