emo-text

1.0.1 • Public • Published

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

Function Type Parameter Description
appendEmoji function text value it will append the emoji with text
replaceColon function text value it replaces with text with specific emojis.
appendEmoji function text value it replaces text followed by ":" colon with emoji.

Authors

License

MIT

Package Sidebar

Install

npm i emo-text

Weekly Downloads

1

Version

1.0.1

License

none

Unpacked Size

40.4 kB

Total Files

5

Last publish

Collaborators

  • surya21