Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ilihub/foot

ilihub14MITdeprecated1.0.1TypeScript support: included

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

TypeScript functions for converting foot to other length units.

ilihub, code, math, length, kilometer, hectometer, decameter, meter, decimeter, centimeter, millimeter, mile, yard, foot, inch, tools, typescript, functions, utils

readme

@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