Text2emoji is a lightweight npm package that converts text into emojis, providing a fun and expressive way to communicate.
Text2emoji allows users to easily transform plain text into a sequence of emojis. The package supports a wide range of common words and phrases, replacing them with relevant emojis. It's perfect for adding a playful touch to your messages, social media posts, or any text-based application.
- Install the text2emoji package:
npm install text2emoji
- Install commander for command-line interface support:
npm install commander
- Run the following command to convert text to emojis:
node src/cli.js "Hello :smile:! How are you :thumbsup:?"
We welcome contributions! If you'd like to contribute to text2emoji, please follow these steps:
- Fork the repository.
- Create a new branch: git checkout -b my-feature-branch.
- Make your changes and commit them: git commit -m 'Add new feature'.
- Push to the branch: git push origin my-feature-branch.
- Submit a pull request.