triangle-taxonomist
v0.1.1
Published
A simple command-line tool for categorizing triangles. Edit
Downloads
2
Readme
triangle-taxonomist
A simple command-line tool for categorizing triangles.
Requirements
- Node 6.x
Installation
npm install -g triangle-taxonomy
To install from the source, simply clone this repo and install dependencies:
$ git clone https://github.com/jmwohl/triangle-taxonomist.git && cd triangle-taxonomist
$ npm install -g
Although not necessary to install globally, this will allow you to use the tt
command directly rather than executing ./bin/cli.js
.
To uninstall, use $ npm uninstall -g triangle-taxonomy
(or $ npm uninstall -g
in the repo dir if you've installed from source).
Usage
To categorize a triangle based on its three side lengths, simply specify each side as a positional argument to the tt
command.
$ tt [side_a_length] [side_b_length] [side_c_length]
For example:
$ tt 3 4 4
Will result in the following output:
$ isosceles
Running tests
To run the unit tests and display code coverage:
$ npm test