Temperature Conversion Library. A Node.js library for converting temperatures between various scales.
npm install thermoshift
const thermoshift = require('thermoshift');
// Celsius to Fahrenheit
console.log('25°C to Fahrenheit:', thermoshift.Celsius_to_Fahrenheit(25)); // Output: 77
// Celsius to Kelvin
console.log('25°C to Kelvin:', thermoshift.Celsius_to_Kelvin(25)); // Output: 298.15
// Fahrenheit to Celsius
console.log('77°F to Celsius:', thermoshift.Fahrenheit_to_Celsius(77)); // Output: 25
// Fahrenheit to Kelvin
console.log('77°F to Kelvin:', thermoshift.Fahrenheit_to_Kelvin(77)); // Output: 298.15
// Kelvin to Celsius
console.log('298.15K to Celsius:', thermoshift.Kelvin_to_Celsius(298.15)); // Output: 25
// Kelvin to Fahrenheit
console.log('298.15K to Fahrenheit:', thermoshift.Kelvin_to_Fahrenheit(298.15)); // Output: 77
// Other conversions (Rankine, Réaumur, Delisle, Newton)...
Celsius_to_Delisle(celsius)
Celsius_to_Fahrenheit(celsius)
Celsius_to_Kelvin(celsius)
Celsius_to_Newton(celsius)
Celsius_to_Reaumur(celsius)
Fahrenheit_to_Celsius(fahrenheit)
Fahrenheit_to_Kelvin(fahrenheit)
Fahrenheit_to_Rankine(fahrenheit)
Kelvin_to_Celsius(kelvin)
Kelvin_to_Fahrenheit(kelvin)
Rankine_to_Fahrenheit(rankine)
Reaumur_to_Celsius(reaumur)
Delisle_to_Celsius(delisle)
Newton_to_Celsius(newton)
feel free to contribute.