1.0.1 • Published 1 year ago

@ilihub/foot v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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