🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

emo-text

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emo-text

Emo-text is a lightweight and versatile package that enables developers to effortlessly convert keywords into their corresponding emojis.

1.0.1
latest
npm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

Emo-text

Emo-text is a lightweight and versatile package that enables developers to effortlessly convert keywords into their corresponding emojis.

Embrace the power of emojis and make your words come alive with Emo-text!

Demo

Replace Word

Alt Text

Replace Colon

Alt Text

Append Emoji

Alt Text

Installation

Install my-project with emo-text

  npm install emo-text
 

Usage/Examples

import TextToEmoji from "emo-text";


const App = () => {
  const [value, setValue] = useState("");

  return (
    <div>
      <input
        type="text"
        onChange={(e) => {
          setValue(TextToEmoji.replaceWord(e.target.value));
        }}
        value={value}
        style={{ width: "80%" }}
      />
    </div>
  );
};

Usage Reference

FunctionTypeParameterDescription
appendEmojifunctiontext valueit will append the emoji with text
replaceColonfunctiontext valueit replaces with text with specific emojis.
appendEmojifunctiontext valueit replaces text followed by ":" colon with emoji.

Authors

  • @surya

License

MIT

Keywords

emojify

FAQs

Package last updated on 06 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts