Unit conversion utility

Unit conversion utility

user

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. πŸš€

Important Links:

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.).

ParameterTypeDescriptionvaluenumberThe value to convertfromstringThe unit of the input valuetostringThe 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:

  1. Fork the repo
  2. Clone your fork:

git clone https://github.com/smais007/measurex.git

  1. Install dependencies:

npm install

  1. Make changes & commit:

git commit -m "Your meaningful commit message"

  1. Push & create a pull request πŸš€


Β© 2025 Smais Shawon. All rights reserved.