Nomoji – replace emojis in text with SVG images
6 months ago
- #javascript
- #emoji
- #svg
- Replace emojis in text with SVG images using the `nomoji` npm package.
- Install via `npm i nomoji` and use `nomoji(text, [prefix], [disableSanitation])`.
- Example: `nomoji("Hello from ������")` outputs emoji as SVG images.
- Optional `prefix` parameter defines the path for SVG files.
- Optional `disableSanitation` parameter allows HTML to pass through unsanitized.
- Customize emoji appearance using CSS with `.emoji` selector.
- Code is MIT licensed; Noto Emoji graphics are Apache 2.0 licensed.