📜  yarn emojis - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:06:05.961000             🧑  作者: Mango

Yarn Emojis - Shell-Bash

Yarn Emojis is a Bash script that adds emojis to the output of Yarn commands in the terminal. It enhances the user experience by making the output more visually appealing and understandable. In this article, we will explore what Yarn Emojis is, how to install it, and how to use it.

What is Yarn Emojis?

Yarn Emojis is a Bash script that adds emojis to the output of Yarn commands. It works by running a regular expression on the standard output of Yarn commands and replacing certain words with emojis. For example, it replaces the word "success" with a green checkmark emoji, and the word "error" with a red cross emoji.

Installation

To install Yarn Emojis, simply clone the GitHub repository and add the script to your Bash profile. Here are the steps:

  1. Open your terminal and clone the repository:
git clone https://github.com/rodrigobdz/yarn-emojis.git
  1. Change to the downloaded directory:
cd yarn-emojis
  1. Copy the script to your Bash profile:
cat yarn-emojis >> ~/.bash_profile
  1. Source your Bash profile:
source ~/.bash_profile
Usage

To use Yarn Emojis, simply run any Yarn command and enjoy the added emojis in the output. Here are some examples:

yarn install

Output:

🔍 Installing dependencies
✨ Done in x.xx seconds.
yarn build

Output:

🚀 Build complete! 
💡 You can now view the project in the browser.
yarn test

Output:

🏃 Running tests...
✅ All tests passed! 
Conclusion

Yarn Emojis is a simple and fun way to enhance the output of Yarn commands in the terminal. It adds emojis to the output, making it more visually appealing and understandable. By following the easy installation steps and using Yarn Emojis in your workflow, you can improve your development experience.