@ilihub/foot
TypeScript functions for converting foot to other length measurements.
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
- Foot
- Foot To Kilometer
- Foot To Hectometer
- Foot To Decameter
- Foot To Meter
- Foot To Decimeter
- Foot To Centimeter
- Foot To Millimeter
- Foot To Mile
- Foot To Yard
- Foot To Inch
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.