/calc

A simple command line calculator built with Node

Primary LanguageJavaScriptMIT LicenseMIT

calc

A simple command line calculator built with Node

Installation

Download, fork, or clone this project onto your local machine. Then navigate to it's location with your terminal and simply install with npm install.

$~/root/calc npm install

Usage

To use, simply pass the command calc followed by whatever equation you want to run.

Example

$ calc 2+3*15-1*5

[ 42 ]

The calculator can handle addition, subtraction, multiplication, and division on whole numbers. Fractions and parenthesis not currently supported (but will be added in the future).