@ikhlasbano/word-counter
v1.0.0
Published
Text Analyzer CLI is a command-line tool built with Node.js and Inquirer.js that allows users to analyze text input in various ways, including counting words, characters, vowels, consonants, converting case, and reversing sentences.
Downloads
2
Readme
Text Analyzer CLI
Text Analyzer CLI is a command-line tool built with Node.js and Inquirer.js that allows users to analyze text input in various ways, including counting words, characters, vowels, consonants, converting case, and reversing sentences.
Features
- Word Count: Count the number of words in a sentence.
- Character Count: Count the number of characters in a sentence.
- Vowel Count: Count the number of vowels in a sentence.
- Consonant Count: Count the number of consonants in a sentence.
- Uppercase Conversion: Convert a sentence to uppercase.
- Lowercase Conversion: Convert a sentence to lowercase.
- Reverse Sentence: Reverse a sentence.
Installation
Clone the repository:
git clone https://github.com/ikhlasafzaal/TextAnalyzer-CLI-TypeScript.git
Navigate to the project directory:
cd text-analyzer-cli
Install dependencies:
npm install
Usage
Run the following command in your terminal:
node index.js
Follow the prompts to enter a sentence and choose an operation to perform.
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Create a new Pull Request.
License
This project is licensed under the MIT License.
Technologies Used
- TypeScript: A statically typed superset of JavaScript that compiles to plain JavaScript, adding support for OOP features.
- Inquirer.js: A command-line interface library for interactive prompts, used for user input.
- Chalk: A terminal string styling library for enhancing the visual presentation of the application.