Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

triangle-taxonomist

0.1.1 • Public • Published

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

Install

npm i triangle-taxonomist

DownloadsWeekly Downloads

4

Version

0.1.1

License

MIT

Last publish

Collaborators

  • avatar