cli-monkeytype
v1.0.0
Published
A command-line typing test application inspired by Monkeytype
Maintainers
Readme
CLI Monkeytype
A command-line typing test application inspired by Monkeytype, built with Node.js.
Features
- Real-time typing test in your terminal
- Word-per-minute (WPM) calculation
- Accuracy tracking
- Colorful terminal interface
- Customizable word count
Installation
Method 1: Local Installation (Recommended for now)
Clone or download this repository, then navigate to the project directory and run:
npm install -g .Method 2: Direct Execution
Clone or download this repository, then navigate to the project directory and run:
npm startor
node ./bin/monkeytype.jsFuture: npm Registry (When published)
Eventually, this package will be published to npm, allowing installation with:
npm install -g cli-monkeytypeOr direct execution with npx:
npx cli-monkeytypeUsage
After installation, simply run:
monkeytypeYou can also customize the number of words for the test:
monkeytype --words 50Or get help with:
monkeytype --helpThen press any key to start the test. Type the words as they appear highlighted in yellow. Press SPACE to submit each word. Press ESC to quit at any time.
Development
To run the application from source:
- Clone the repository
- Install dependencies:
npm install - Run the application:
ornpm startnode ./bin/monkeytype.js
How It Works
- The application generates a sequence of random words
- You type each word exactly as shown
- Correct words turn green, incorrect typing turns red
- After completing all words, you'll see your results:
- Time taken
- Words per minute (WPM)
- Accuracy percentage
- Total characters typed
- Number of mistakes
Requirements
- Node.js 12 or higher
- A terminal that supports TTY mode for the best experience
License
MIT
