/rotate-table-cli

a node js CLI for rotating number tables given in a csv file

Primary LanguageTypeScript

Table rotator cli

This CLI receives a square table of numbers, rotates it clockwise and prints the result. it checks if the table is square, if not will print not valid result

How to run

you need to install node js 18 or higher

  1. install dependencies
npm install
  1. build typescript
npm run build
  1. run cli
 node cli.js input.csv

How to run tests

jest is used for running tests

npm run test