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

1.0.4 • Public • Published

@ilihub/circle

A collection of useful TypeScript functions for circle related operations.

NPM Version NPM CodeFactor Socket Badge

Installation

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

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

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

Usage

import { Circle } from "@ilihub/circle";

const radius = 10;

const circle = new Circle(radius);

const area = circle.area();
console.log(area); // 314.1592653589793

const circumference = circle.circumference();
console.log(circumference); // 62.83185307179586

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/circle/

    Package Sidebar

    Install

    npm i @ilihub/circle

    Weekly Downloads

    0

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    6.57 kB

    Total Files

    5

    Last publish

    Collaborators

    • harshraj8843