clightsaber

0.2.2 • Public • Published

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

Package Sidebar

Install

npm i clightsaber

Weekly Downloads

2

Version

0.2.2

License

MIT

Unpacked Size

7.76 kB

Total Files

11

Last publish

Collaborators

  • or-yam