UNPKG

word-counter-tool-cli

Version:

A simple TypeScript console application to count the length of entered text in characters

47 lines (29 loc) 1.1 kB
# Word Counter CLI Word Counter CLI is a simple TypeScript console application that allows you to enter or paste a text and get the length of the text in characters. ## Features - Accepts user input via the console - Displays the length of the entered text in characters ## Installation First, ensure you have Node.js and npm installed. Then, you can install the package using npm: ```bash npm word-counter-tool-cli ``` ## Usage To use the Word Counter CLI, run the following command in your terminal: ```bash npx word-counter-tool-cli ``` You will be prompted to enter or paste your text. After entering your text, the application will display the length of the text in characters. ## Example ```bash npx word-counter-tool-cli ``` ``` ? Enter or paste your text: Hello, world! Received text: Hello, world! The length of words is 13 characters ``` ## Contributing Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements. ## License This project is licensed under the MIT License.