1.0.2 ⢠Published 4 months ago
measure-x v1.0.2
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! š