Skip to content

or-yam/clightsaber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightsabers CLIghtsaber

Useless cli tool that prints light-saber in your terminal

Demo animation

npm npm

This fun project try to follow Nodejs-cli-apps best practices

Inspired by Jeff Delaney's (AKA Fireship.io) video


Usage

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]

Available colors

  • 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.

Incase you insert a color that not exist you'll get an error message

You can also use the --help flag to see all color options