1.0.4 • Published 3 years ago

question-1 v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

README

Getting up and running

The following solution is based in Shunting-yard algorithm and trincot. The code is modified for what the homework requested. In order to install and run this package correctly in your project you must:

  1. run npm install question-1

  2. After that, the package will be installed, now you can create a index.js with the following content:

    let mymodule = require('question-1')

    mymodule.evaluate();

    This file will import the package and will execute the evaluate function.

  3. The function needs a file in order to calculate the numeric expression, create a numericExpression.txt file and add an expression. You can use any of the example file in the question of the homework.

  4. Finally, in a terminal run the following commando to see the results:

node index.js numericExpression.txt

1.0.4

3 years ago

1.0.3

3 years ago