Socket
Socket
Sign inDemoInstall

@bethany.griggs/temperature-converter

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bethany.griggs/temperature-converter

Converts temperatures between Fahrenheit and Celsius.


Version published
Maintainers
1
Install size
3.21 kB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 13 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc