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 start
or
node ./bin/monkeytype.js
Future: npm Registry (When published)
Eventually, this package will be published to npm, allowing installation with:
npm install -g cli-monkeytype
Or direct execution with npx:
npx cli-monkeytype
Usage
After installation, simply run:
monkeytype
You can also customize the number of words for the test:
monkeytype --words 50
Or get help with:
monkeytype --help
Then 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:
npm start
or
node ./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