0.1.3 • Published 7 years ago

convert-grades v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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