Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
/ tempconv Public archive

Simple temperature unit converter. Converts between °C, °F and K.

License

Notifications You must be signed in to change notification settings

Rageous0/tempconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tempconv

Simple temperature unit converter. Converts between °C, °F and K easily.

Installation

npm i tempconv

Usage

const { Convert } = require('../lib/index.js');
console.log(Convert({ from: 'C', to: 'F', value: 1 }); // Returns 33.8.

Parameters

from - Unit to convert from, see units below. No default value. to - Unit to convert to, see units below. No default value. value - What numeric value to convert. No default value. float - How many decimals to output in end result. Defailt is 1.

Units

°C, C, °F, F, K, Celsius, Fahrenheit, Kelvin

NOTE: The units are not case sensitive.

About

Simple temperature unit converter. Converts between °C, °F and K.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published