emo-text
v1.0.1
Published
Emo-text is a lightweight and versatile package that enables developers to effortlessly convert keywords into their corresponding emojis.
Downloads
12
Maintainers
Readme
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
Replace Colon
Append Emoji
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