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