1.0.8 • Published 2 months ago

maf-converter v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Length Unit Converter

This simple npm package provides a function to convert length units.

Installation

npm install length-unit-converter

Usage

const Converter = require('length-unit-converter');

// Convert 2 meters to centimeters const result = Converter.convertLength('meter', 'centimeter', 2); console.log(result); // Output: 200

The convertLength function takes four parameters:

fromUnit: The unit to convert from (e.g., 'meter'). toUnit: The unit to convert to (e.g., 'centimeter'). value: The value to convert. Returns: The converted value. Supported units:

Meter (meter) Centimeter (centimeter) Kilometer (kilometer) Inch (inch) Foot (foot) Yard (yard) Mile (mile)

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.8

2 months ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.4

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago