url2emoji
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

url2emoji

Convert URL of Twemoji image on twitter.com to emoji text.

Installation

npm install url2emoji

Usage

import { url2emoji } from "url2emoji";

const emoji_svg = url2emoji("https://abs-0.twimg.com/emoji/v2/svg/1f600.svg");
const emoji_png = url2emoji("https://abs-0.twimg.com/emoji/v2/72x72/1f600.png");
console.log(emoji_svg); // 😀
console.log(emoji_png); // 😀

Package Sidebar

Install

npm i url2emoji

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

4.4 kB

Total Files

5

Last publish

Collaborators

  • robot-inventor