Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/devmianharoon/word-counter


https://github.com/devmianharoon/word-counter

Last synced: 11 days ago
JSON representation

Awesome Lists containing this project

README

        

# Remove Space from User Input

This is a TypeScript script that utilizes the Inquirer package to prompt the user for input and then removes spaces from the user's input.

## Prerequisites

- Node.js and npm installed on your system.
- TypeScript installed globally or locally in your project.

## Getting Started

1. Clone this repository or create a new directory for your project.

2. Install the required dependencies:

`bash`
`npm install inquirer`
`npm install @types/inquirer --save-dev`
or simply
`npm i`

4. Compile the TypeScript code:
`tsc removeSpace.ts`
5. Run the script:
`node removeSpace.js`
6. Follow the on-screen instructions to input text, and the script will remove spaces from the user's input.

## Usage
When you run the script, it will prompt you to enter a text string.

After you enter the text, the script will remove spaces from the input and display the modified text along with its length.

## License
This project is open-source and available under the MIT License.

Feel free to modify and use this script as needed.

Author
[devmianharoon]