@ilihub/yard
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@ilihub/yard

TypeScript functions for converting yard to other length measurements.

NPM Version NPM CodeFactor Socket Badge

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


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


Package Sidebar

Install

npm i @ilihub/yard

Weekly Downloads

11

Version

1.0.1

License

MIT

Unpacked Size

11.8 kB

Total Files

5

Last publish

Collaborators

  • harshraj8843