JSPM

temperature

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q47269F
  • License MIT

A collection of simple temperature operations

Package Exports

  • temperature

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (temperature) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

temperature

A collection of simple temperature operations for javascript.

The collection includes functions to convert between Celsius, Fahrenheit and Kelvin temperatures.

Install

Via npm

npm i temperature

Usage

// import only the functions you need
import {celsiusToFahrenheit} from 'temperature';

const celsius = 100;
const fahrenheit = celsiusToFahrenheit(celsius); // == 212 

// ... do stuff with awesome temperatures!

Available converters

All the following methods take input of type number and return output of type number

  • celsiusToFahrenheit(celsius)
  • celsiusToKelvin(celsius)
  • fahrenheitToCelsius(fahrenheit)
  • fahrenheitToKelvin(fahrenheit)
  • kelvinToCelsius(kelvin)
  • kelvinToFahrenheit(kelvin)

License

MIT © Max GJ Panas