temperatures
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Temperatures

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: "F",
  value: 30
}));
// ES5
const x = require("temperatures").default;

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

License

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

Package Sidebar

Install

npm i temperatures

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

18.8 kB

Total Files

12

Last publish

Collaborators

  • merkdev