0.1.1 • Published 7 years ago

triangle-taxonomist v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

triangle-taxonomist

A simple command-line tool for categorizing triangles.

Build Status Coverage Status

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