triangle-taxonomist
A simple command-line tool for categorizing triangles. Edit
Last updated 4 years ago by jonwohl .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install triangle-taxonomist 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.1                                ...           latest (4 years ago)

2 Versions

  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |