@bethany.griggs/temperature-converter

1.0.0 • Public • Published

Temperature Converter Module

A simple Node.js module for converting temperatures between Fahrenheit and Celsius.

Example usage

const { fahrenheitToCelsius, celsiusToFahrenheit } = require('@npmusername/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:

$ node testTemperatureConverter.js   

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i @bethany.griggs/temperature-converter

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.29 kB

Total Files

5

Last publish

Collaborators

  • bethany.griggs