measure-x
v1.0.2
Published
A lightweight and efficient **conversion utility** that supports various **number system conversions**, unit conversions, and more. π
Downloads
51
Maintainers
Readme
measurex π¦
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.).
| Parameter | Type | Description |
| --------- | -------- | --------------------------- |
| value | number | The value to convert |
| from | string | The unit of the input value |
| to | string | 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 π
π Links
π¨βπ» Author
Developed by S M Ariful Islam Shawon. Feel free to reach out! π
β If you like this package, don't forget to β star the repo! π
