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