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