@ilihub/rectangle
A collection of useful TypeScript functions for rectangle related operations.
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.