@amine_dmk/temperature-converter
v1.0.0
Published
Converts the temperature in Fahrenheit to Celsius and vice versa
Downloads
4
Readme
Temperature Converter Module
A simple Node.js module for converting temperatures between Fahrenheit and Celsius.
Example usage
const {
fahrenheitToCelsius,
celsiusToFahrenheit,
} = require("@amine_dmk/temperature-converter");
const celsius = fahrenheitToCelsius(100);
console.log(`100°F is ${celsius}°C`);
const fahrenheit = celsiusToFahrenheit(37);
console.log(`37°C is ${fahrenheit}°F`);Running Tests
To run tests and ensure the module is working as expected, navigate to the module's root directory and execute:
$ npm run testLicense
This project is licensed under the MIT License.
