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

1.0.1 • Public • Published

@ilihub/centimeter

TypeScript functions for converting centimeter to other length measurements.

NPM Version NPM CodeFactor Socket Badge

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


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/centimeter

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

12.4 kB

Total Files

5

Last publish

Collaborators

  • harshraj8843