1.0.2 • Published 4 months ago

measure-x v1.0.2

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

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

ParameterTypeDescription
valuenumberThe value to convert
fromstringThe unit of the input value
tostringThe 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
  3. Install dependencies:
    npm install
  4. Make changes & commit:
    git commit -m "Your meaningful commit message"
  5. 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! šŸš€

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago

0.0.17

7 months ago