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

1.0.1 • Public • Published

@ilihub/foot

TypeScript functions for converting foot to other length measurements.

NPM Version NPM CodeFactor Socket Badge

Installation

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

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

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

Usage

import { Foot } from "@ilihub/foot";

const foot = new Foot(5280);

const kilometer = foot.toKilometer();
console.log(kilometer);

const hectometer = foot.toHectometer();
console.log(hectometer);

const decameter = foot.toDecameter();
console.log(decameter);

const meter = foot.toMeter();
console.log(meter);

const decimeter = foot.toDecimeter();
console.log(decimeter);

const centimeter = foot.toCentimeter();
console.log(centimeter);

const millimeter = foot.toMillimeter();
console.log(millimeter);

const mile = foot.toMile();
console.log(mile);

const yard = foot.toYard();
console.log(yard);

const inch = foot.toInch();
console.log(inch);

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


Package Sidebar

Install

npm i @ilihub/foot

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

11.8 kB

Total Files

5

Last publish

Collaborators

  • harshraj8843