This project aims to follow Node.js CLI Apps Best Practices
You can run the command directly using npx:
npx clightsaber [color] [options]For example:
npx clightsaber red --length 50 --speed 5You can also install it globally:
npm i -g clightsaberThen run:
clightsaber [color] [options]| Name | Description | Default |
|---|---|---|
color (argument) |
Sets the color of the lightsaber blade. | blue |
--length, -l |
Sets the length of the lightsaber blade. | 100 |
--speed, -s |
Sets the animation speed in milliseconds. | 20 |
--help, -h |
Displays the help screen. |
- Red
- Green
- Blue
- Yellow
- Cyan
- Magenta
- White
- Random
The color input is case-insensitive. If you provide a color that doesn't exist, an error message with available colors will be shown.

