@ilihub/square
v1.0.3
Published
A collection of useful TypeScript functions for square related operations.
Downloads
1
Maintainers
Readme
@ilihub/square
A collection of useful TypeScript functions for square related operations.
Installation
# if you're using pnpm
pnpm add @ilihub/square
# or, if you're using npm
npm install @ilihub/square
# or, if you're using yarn
yarn add @ilihub/square
Usage
import { Square } from "@ilihub/square";
const sideLength = 5;
const square = new Square(sideLength);
const area = square.area();
console.log(area); // 25
const perimeter = square.perimeter();
console.log(perimeter); // 20
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.