Thanks to visit codestin.com
Credit goes to github.com

Skip to content

๐Ÿ’ฌ Emojifies strings, converting textual representations of emojis to graphical ones. ๐Ÿ–Œ๏ธ

License

Notifications You must be signed in to change notification settings

igorskyflyer/npm-emojilyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

46 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Icon of Emojilyzer

Emojilyzer


๐Ÿ’ฌ Emojifies strings, converting textual representations of emojis to graphical ones. ๐Ÿ–Œ๏ธ



๐Ÿ“ƒ Table of Contents



๐Ÿค– Features

  • โšก Oneโ€‘liner API - emojify("Hello :)") โ†’ "Hello ๐Ÿ™‚"
  • ๐Ÿง  Powered by MappedReplacer - a blazingโ€‘fast, battleโ€‘tested replacement engine
  • ๐Ÿ” Strict matching - no accidental halfโ€‘matches or false positives
  • ๐Ÿ”ก Caseโ€‘insensitive - XD, xd, Xd all become ๐Ÿ˜‚
  • ๐ŸŽจ Rich mapping set - covers classic emoticons, leetspeak, and niche faces
  • ๐Ÿชถ Zero config - works out of the box, no setup required
  • ๐Ÿ›ก Safe fallback - returns original text if nothing matches


๐Ÿ•ต๐Ÿผ Usage

Install it by executing any of the following, depending on your preferred package manager:

pnpm add @igorskyflyer/emojilyzer
yarn add @igorskyflyer/emojilyzer
npm i @igorskyflyer/emojilyzer


๐Ÿคน๐Ÿผ API

emojify(text: string): string

Emojifies the given string text.

text - The string to emojify (convert textual representations of emojis to graphical ones).

Returns the emojified string or an empty string if no input is passed.



๐Ÿ—’๏ธ Examples

example.ts

import { emojify } from '@igorskyflyer/emojilyzer'

console.log(
  emojify(`Hey there! :) How's it going? :) I just wanted to check in and see if you're free for a coffee later today. I've got some exciting news to share!

Yesterday, I went to this amazing concert and the band was just phenomenal!
The crowd was going wild and I even got to meet the lead singer after the show!
Can you believe it?! XD

After the concert, we grabbed some delicious food and talked about all sorts of things. It was such a great night. :) Anyway, let me know if you're up for coffee! ;)

I hope everything is going well with you. ^_^ I've been super busy lately, but it's all good!

Talk soon! <3

P.S. Did you see the latest movie that came out? It was so awesome! :3 I was on the edge of my seat the whole time.

Catch you later! ;)`)
)

// Will log

`Hey there! ๐Ÿ™‚ How's it going? ๐Ÿ™‚
I just wanted to check in and see if you're free for a coffee later today. I've got some exciting news to share!

Yesterday, I went to this amazing concert and the band was just phenomenal!
The crowd was going wild and I even got to meet the lead singer after the show!
Can you believe it?! ๐Ÿ˜‚

After the concert, we grabbed some delicious food and talked about all sorts of things. It was such a great night. ๐Ÿ™‚ Anyway, let me know if you're up for coffee! ๐Ÿ˜‰

I hope everything is going well with you. ๐Ÿ˜„ I've been super busy lately, but it's all good!

Talk soon! โค๏ธ

P.S. Did you see the latest movie that came out? It was so awesome! ๐Ÿ˜ธ I was on the edge of my seat the whole time.

Catch you later! ๐Ÿ˜‰`


๐Ÿ“ Changelog

๐Ÿ“‘ The changelog is available here, CHANGELOG.md.



๐Ÿชช License

Licensed under the MIT license which is available here, MIT license.



๐Ÿ’– Support

I work hard for every project, including this one and your support means a lot to me!
Consider buying me a coffee. โ˜•

Donate to igorskyflyer

Thank you for supporting my efforts! ๐Ÿ™๐Ÿ˜Š


๐Ÿงฌ Related

@igorskyflyer/regkeys

๐Ÿ“š An NPM package for fetching Windows registry keys. ๐Ÿ—


@igorskyflyer/normalized-string

๐Ÿ’Š NormalizedString provides you with a String type with consistent line-endings, guaranteed. ๐Ÿ“ฎ


@igorskyflyer/strip-headings

โ›ธ Strips Markdown headings!๐Ÿน


@igorskyflyer/my-file-path

๐ŸŒŸ An npm module that strongly types file paths! ๐ŸฅŠ


@igorskyflyer/simple-exec

๐Ÿ•บ Command. Execution. Made. Simple. โ–ถ




๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Author

Created by Igor Dimitrijeviฤ‡ (@igorskyflyer).

About

๐Ÿ’ฌ Emojifies strings, converting textual representations of emojis to graphical ones. ๐Ÿ–Œ๏ธ

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project