@ilihub/rectangle
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@ilihub/rectangle

A collection of useful TypeScript functions for rectangle related operations.

NPM Version NPM CodeFactor Socket Badge

Installation

# if you're using pnpm
pnpm add @ilihub/rectangle

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

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

Usage

import { Rectangle } from "@ilihub/rectangle";

const length = 10;
const width = 20;

const rectangle = new Rectangle(length, width);

const area = rectangle.area();
console.log(area); // 200

const perimeter = rectangle.perimeter();
console.log(perimeter); // 60

Available Functions and Classes


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


/@ilihub/rectangle/

    Package Sidebar

    Install

    npm i @ilihub/rectangle

    Weekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    6.17 kB

    Total Files

    5

    Last publish

    Collaborators

    • harshraj8843