@ilihub/mile
v1.0.1
Published
TypeScript functions for converting mile to other length units.
Downloads
2
Maintainers
Readme
@ilihub/mile
TypeScript functions for converting mile to other length measurements.
Installation
# if you're using pnpm
pnpm add @ilihub/mile
# or, if you're using npm
npm install @ilihub/mile
# or, if you're using yarn
yarn add @ilihub/mile
Usage
import { Mile } from "@ilihub/mile";
const mile = new Mile(2.5);
const kilometer = mile.toKilometer();
console.log(kilometer);
const hectometer = mile.toHectometer();
console.log(hectometer);
const decameter = mile.toDecameter();
console.log(decameter);
const meter = mile.toMeter();
console.log(meter);
const decimeter = mile.toDecimeter();
console.log(decimeter);
const centimeter = mile.toCentimeter();
console.log(centimeter);
const millimeter = mile.toMillimeter();
console.log(millimeter);
const yard = mile.toYard();
console.log(yard);
const foot = mile.toFoot();
console.log(foot);
const inch = mile.toInch();
console.log(inch);
Available Functions and Classes
- Mile
- Mile To Kilometer
- Mile To Hectometer
- Mile To Decameter
- Mile To Meter
- Mile To Decimeter
- Mile To Centimeter
- Mile To Millimeter
- Mile To Yard
- Mile To Foot
- Mile 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.