convert-grades

0.1.3 • Public • Published

Temperature converter

Converts any temperature to Celsius, Fahrenheit and Kelvin

Installation

  npm install --save convert-grades

Use

  import convertGrade from 'convert-grades'

Conversions

  /* Convert from Celsius to Fahrenheit */
  convertGrade(30, 'c', 'f')
 
  /* Convert from Celsius to Kelvin */
  convertGrade(30, 'c', 'k')
 
  /* Convert from Fahrenheit to Celsius */
  convertGrade(30, 'f', 'c')
 
  /* Convert from Fahrenheit to Kelvin */
  convertGrade(30, 'f', 'k')
 
  /* Convert from Kelvin to Celsius */
  convertGrade(30, 'k', 'c')
 
  /* Convert from Kelvin to Fahrenheit */
  convertGrade(30, 'k', 'f')

Credits

License

MIT

Package Sidebar

Install

npm i convert-grades

Weekly Downloads

6

Version

0.1.3

License

MIT

Last publish

Collaborators

  • jousmo