Christmas-Tree icon indicating copy to clipboard operation
Christmas-Tree copied to clipboard

Singing Christmas Tree, implemented in javascript.

Christmas Tree

alt intro-gif

alt intro-gif

Introduction

This simple javascript file, the source of which looks like "Christmas Tree", during execution does the following steps.

  1. Checks the x.mp3 file's existence in the source directory.
  • If it exists.
    • Skips to step 4
  • else
    • Executes step 2
  1. Downloads the Jingle Bells Remix.
  2. Saves it as x.mp3.
  3. Checks the operating system.
  4. Turns the volume of your machine up to 100%.
  5. Plays Jingle Bells.
  6. Code reads and draws itself line by line.

Install

$ git clone https://github.com/SurenAt93/Christmas-Tree.git

$ cd Christmas-Tree/

$ npm i

Usage

$ node rc.js

License

MIT