# @ilihub/cube

> A collection of useful TypeScript functions for cube related operations.

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

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

## Install

```sh
npm install @ilihub/cube
pnpm add @ilihub/cube
yarn add @ilihub/cube
bun add @ilihub/cube
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-11-01 |
| First published | 2023-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ilihub |
| Maintainers | harshraj8843 |
| Keywords | ilihub, code, math, cube, volume of cube, diagonal of cube, total surface area of cube, lateral surface area of cube, volume, tools, typescript, functions, utils |

## Links

- npm: https://www.npmjs.com/package/@ilihub/cube
- 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/cube

## Dependencies (4)

- [@ilihub/volume-of-cube](https://npm.io/package/@ilihub/volume-of-cube.md) 1.0.3
- [@ilihub/diagonal-of-cube](https://npm.io/package/@ilihub/diagonal-of-cube.md) 1.0.3
- [@ilihub/total-surface-area-of-cube](https://npm.io/package/@ilihub/total-surface-area-of-cube.md) 1.0.3
- [@ilihub/lateral-surface-area-of-cube](https://npm.io/package/@ilihub/lateral-surface-area-of-cube.md) 1.0.3

## 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.3 (latest) — 2023-11-01
- 1.0.2 — 2023-10-03
- 1.0.1 — 2023-09-29
- 1.0.0 — 2023-09-27

## README

# @ilihub/cube

A collection of useful TypeScript functions for cube related operations.

![NPM Version](https://img.shields.io/npm/v/%40ilihub%2Fcube?color=33cd56&logo=npm)
![NPM](https://img.shields.io/npm/l/%40ilihub%2Fcube)
[![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/cube)](https://socket.dev/npm/package/@ilihub/cube)

## Installation

```bash
# if you're using pnpm
pnpm add @ilihub/cube

# or, if you're using npm
npm install @ilihub/cube

# or, if you're using yarn
yarn add @ilihub/cube
```

## Usage

```javascript
import { Cube } from "@ilihub/cube";

const sideLength = 5;

const cube = new Cube(sideLength);

const diagonal = cube.diagonal();
console.log(diagonal); // 8.660254037844386

const lateralSurfaceArea = cube.lateralSurfaceArea();
console.log(lateralSurfaceArea); // 100

const totalSurfaceArea = cube.totalSurfaceArea();
console.log(totalSurfaceArea); // 150

const volume = cube.volume();
console.log(volume); // 125
```

## Available Functions and Classes

- [Cube](https://www.npmjs.com/package/@ilihub/cube)
- [Diagonal Of Cube](https://www.npmjs.com/package/@ilihub/diagonal-of-cube)
- [Lateral Surface Area Of Cube](https://www.npmjs.com/package/@ilihub/lateral-surface-area-of-cube)
- [Total Surface Area Of Cube](https://www.npmjs.com/package/@ilihub/total-surface-area-of-cube)
- [Volume Of Cube](https://www.npmjs.com/package/@ilihub/volume-of-cube)

---

<!-- 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/cube · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
