Skip to content

merkdev/temperatures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temperatures

Test results

CircleCI

Information

Convert any temperature between Celcius, Fahrenheit and Kelvin or vice versa.

Example

Install Package

# Install package
npm install temperatures
# or
yarn add temperatures

Usage

// ES6
import TempConvert from "temperatures";

console.log(TempConvert.CToF(11));
// ES6 with convert function
import TempConvert from "temperatures";

console.log(TempConvert.convert({
  from: "C",
  to: "K",
  value: 30
}));
// ES5
const x = require("temperatures").default;

console.log(x.KToF(11));

License

Licensed under The MIT License (MIT) For the full copyright and license information, please view the LICENSE file.

About

🥶 🥵 Node module for converting temperatures

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published