# @ilihub/right-triangle

> A collection of useful TypeScript functions and utilities for performing Right Triangle calculations.

Latest version **1.0.4** (published 2023-11-01) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @ilihub/right-triangle
pnpm add @ilihub/right-triangle
yarn add @ilihub/right-triangle
bun add @ilihub/right-triangle
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-11-01 |
| First published | 2023-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ilihub |
| Maintainers | harshraj8843 |
| Keywords | ilihub, code, math, triangle, right triangle, area of right triangle, perimeter of right triangle, tools, typescript, functions, utils |

## Links

- npm: https://www.npmjs.com/package/@ilihub/right-triangle
- Repository: https://github.com/ilihub/npm
- Homepage: https://code.ilihub.tech
- Issues: https://github.com/ilihub/npm/issues
- Funding: https://opencollective.com/ilihub
- npm.io page: https://npm.io/package/@ilihub/right-triangle

## Dependencies (2)

- [@ilihub/area-of-right-triangle](https://npm.io/package/@ilihub/area-of-right-triangle.md) 1.0.4
- [@ilihub/perimeter-of-right-triangle](https://npm.io/package/@ilihub/perimeter-of-right-triangle.md) 1.0.4

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2023-11-01
- 1.0.3 — 2023-10-03
- 1.0.2 — 2023-09-29
- 1.0.1 — 2023-09-25
- 1.0.0 — 2023-09-24

## README

# @ilihub/right-triangle

A collection of useful TypeScript functions and utilities for performing calculations on right triangle.

![NPM Version](https://img.shields.io/npm/v/%40ilihub%2Fright-triangle?color=33cd56&logo=npm)
![NPM](https://img.shields.io/npm/l/%40ilihub%2Fright-triangle)
[![CodeFactor](https://www.codefactor.io/repository/github/ilihub/npm/badge)](https://www.codefactor.io/repository/github/ilihub/npm)
[![Socket Badge](https://socket.dev/api/badge/npm/package/@ilihub/right-triangle)](https://socket.dev/npm/package/@ilihub/right-triangle)

## Installation

```bash
# if you're using pnpm
pnpm add @ilihub/right-triangle

# or, if you're using npm
npm install @ilihub/right-triangle

# or, if you're using yarn
yarn add @ilihub/right-triangle
```

## Usage

```javascript
import { RightTriangle } from "@ilihub/right-triangle";

const base = 6;
const height = 5;

const rightTriangle = new RightTriangle(base, height);

const area = rightTriangle.area();
console.log(area); // 15

const perimeter = rightTriangle.perimeter();
console.log(perimeter); // 18.810249675906654
```

---

<!-- sponsors_and_backers_section_start -->

<!-- Please do not edit/update this section manually, it is automatically generated by the `sponsors.yml` workflow -->

## Sponsors & Backers

Support the development of new open-source projects from ilihub through crowdfunding.

The core of ilihub is our crowd-funded open-source projects, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.

![Sponsors](https://raw.githubusercontent.com/ilihub/sponsors/sponsors/sponsors.svg)

<!-- sponsors_and_backers_section_end -->

---

---
_Source: https://npm.io/package/@ilihub/right-triangle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
