npm package: @ilihub/kilometer
Description: TypeScript functions for converting kilometer to other length units.
Author: ilihub
Latest version: 1.0.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @ilihub/kilometer

TypeScript functions for converting kilometer to other length measurements.

![NPM Version](https://img.shields.io/npm/v/%40ilihub%2Fkilometer?color=33cd56&logo=npm)
![NPM](https://img.shields.io/npm/l/%40ilihub%2Fkilometer)
[![CodeFactor](https://www.codefactor.io/repository/github/ilihub/npm/badge)](https://www.codefactor.io/repository/github/ilihub/npm)
[![Socket Badge](https://socket.dev/api/badge/npm/package/@ilihub/kilometer)](https://socket.dev/npm/package/@ilihub/kilometer)

## Installation

```bash
# 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

```javascript
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](https://www.npmjs.com/package/@ilihub/kilometer)
- [Kilometer To Hectometer](https://www.npmjs.com/package/@ilihub/kilometer-to-hectometer)
- [Kilometer To Decameter](https://www.npmjs.com/package/@ilihub/kilometer-to-decameter)
- [Kilometer To Meter](https://www.npmjs.com/package/@ilihub/kilometer-to-meter)
- [Kilometer To Decimeter](https://www.npmjs.com/package/@ilihub/kilometer-to-decimeter)
- [Kilometer To Centimeter](https://www.npmjs.com/package/@ilihub/kilometer-to-centimeter)
- [Kilometer To Millimeter](https://www.npmjs.com/package/@ilihub/kilometer-to-millimeter)
- [Kilometer To Mile](https://www.npmjs.com/package/@ilihub/kilometer-to-mile)
- [Kilometer To Yard](https://www.npmjs.com/package/@ilihub/kilometer-to-yard)
- [Kilometer To Foot](https://www.npmjs.com/package/@ilihub/kilometer-to-foot)
- [Kilometer To Inch](https://www.npmjs.com/package/@ilihub/kilometer-to-inch)

---

<!-- sponsors_and_backers_section_start -->

<!-- Please do not edit/update this section manually, it is automatically generated by the `sponsors.yml` workflow -->

## 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](https://raw.githubusercontent.com/ilihub/sponsors/sponsors/sponsors.svg)

<!-- sponsors_and_backers_section_end -->

---