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