finds.dev← search

// the find

notwaldorf/emoji-translate

★ 1,664 · JavaScript · MIT · updated Nov 2021

:books: Translate text to ✨emoji ✨!

A toy library that replaces words in a string with matching emoji, backed by emojilib's keyword mappings. Born from a hackday, it does exactly what it says and nothing more. Useful if you need to add emoji substitution to a side project and don't want to write the lookup logic yourself.

The API surface is minimal and honest — five methods, no config objects, no setup ceremony. The `onlyEmoji` flag on `translate()` is a useful escape hatch for all-emoji output. It delegates the hard part (emoji-to-keyword mapping) to emojilib, which is actively maintained. The Chrome extension ships the same translation logic, so there's no divergence between the library and the demo.

Abandoned since 2021 — the npm package is `moji-translate`, not `emoji-translate`, which is already confusing, and neither has seen a release in years. No TypeScript types, no ESM export, just a plain CommonJS file from 2015. Translation quality is purely keyword-based with no context awareness, so 'fire' the word and 'fire' the concept of being fired both get 🔥. The test file exists but tests almost nothing useful.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →