1.0.1 • Published 11 months ago

emo-text v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

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

License

MIT