
Unit conversion utility

Project created by
Smais Shawon
9 March , 2025
Project Overview:
A lightweight and efficient conversion utility that supports various number system conversions, unit conversions, and more. π
npmTypeScript
A lightweight and efficient conversion utility that supports various number system conversions, unit conversions, and more. π
π Features
β
Unit Conversions (Length, Weight, Temperature, etc.)
β
Simple API & Zero Dependencies
β
Lightweight & Fast
β
TypeScript Support
π¦ Installation
Install via npm:
npm install measure-x
π Usage
Unit Conversions
import { convert } from "measure-x";
// Convert 10 meters to feet
console.log(convert(10, "Meter", "Feet")); // "32.8084"
// Convert 100Β°F to Celsius
console.log(convert(100, "Fahrenheit", "Celsius")); // "37.7778"
π API Reference
convert(value: number, from: string, to: string): number
Converts between different units (length, weight, temperature, etc.).
ParameterTypeDescriptionvaluenumber
The value to convertfromstring
The unit of the input valuetostring
The unit to convert to
Supported Units: meters
, feet
, kilograms
, pounds
, celsius
, fahrenheit
, etc.
π License
This project is MIT licensed. See LICENSE for details.
π Contributing
We welcome contributions! Follow these steps:
- Fork the repo
- Clone your fork:
git clone https://github.com/smais007/measurex.git
- Install dependencies:
npm install
- Make changes & commit:
git commit -m "Your meaningful commit message"
- Push & create a pull request π
Β© 2025 Smais Shawon. All rights reserved.