Skip to content

This is a Node JS command line tool written in javascript which allows to create a canvas in console and drawing of some basic objects such as line, rectangle

Notifications You must be signed in to change notification settings

nsgirish/js-cli-canvas-functional

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node.js console canvas paint tool

This is a command line tool which allows to create a canvas in console and drawing of some basic objects such as line, rectangle.

Getting Started:

Pre-requisities:


  • Node.js
  • Mocha 8.2.1 or higher

Code structure:

Root folder


- package.json => application config file
- index.js => main entry point of application 
- components
    - consoleCanvas.js => module containing functions to create canvas in console and draw objects 
    - commands.js => module containing functions to execute commands sent by user 
    - cmdParser.js => module conaining functions to parse user input and run the command for the same
- test
    - canvasTest.js => unit tests for console canvas functions

Running Application:


  • To run the application, run command => npm run main
  • To execute unit tests, run command => npm test

About

This is a Node JS command line tool written in javascript which allows to create a canvas in console and drawing of some basic objects such as line, rectangle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published