Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devmianharoon/word-counter
https://github.com/devmianharoon/word-counter
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/devmianharoon/word-counter
- Owner: devmianharoon
- Created: 2023-10-16T10:18:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-16T11:04:12.000Z (over 1 year ago)
- Last Synced: 2024-11-11T08:16:41.015Z (2 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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]