This fun project try to follow Nodejs-cli-apps best practices
Inspired by Jeff Delaney's (AKA Fireship.io) video
Run
npx clightsaber [color]
[color]
is optional parameter
For example: npx clightsaber
will log a blue saber.
You can also install it globally by running
npm i -g clightsaber
Then run clightsaber [color]
- Red
- Green
- blue
- Yellow
- Cyan
- Magenta
- White
The default color is Blue
You can also use random
to generate a random color
The code will convert the input to lower-case so you can use whatever letter casing you want.
You can also use the --help
flag to see all color options