1.1.4 • Published 5 years ago

apparent-temperature v1.1.4

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

apparent-temperature

enter image description here

Apparent temperature or Feels like factor is perceived temperature derived from either a combination of temperature and wind, or temperature and humidity, or temperature and other natural factors for the indicated hour.

With apparent-temperature you can accurately calculate feels like factor using different formulas, such as New Wind Chill (an improved formula for wind Chill), Heat Index, Humidex, and Dew Point. It allows you to easily convert between different temperature formats (currently supports Kelvin, Celcius, Fahrenheit). apparent-temperature helps you easily calculate feels like factor wit accurate and tested formulas.

Installation guide

npm install apparent-temperature --save-dev

or

yarn add apparent-temperature --dev

Sample usage

// require libary
const at = require("apparent-temperature");

// convert from 25 Celcius to Fahrenheit
at.convertTemperature({
  t: 25,
  fromCelcius: true,
  fromFahrenheit: false,
  fromKelvin: false,
  toCelcius: false,
  toFahrenheit: true,
  toKelvin: false
});
// returns 77

// calculate dew point temparature wit 25 Celcius and relative humidity  70%
at.dewPoint(25, 70);
// returns 19.15 Celcius

at.newWindChill({
  t: -5,
  withCelcius: true,
  withFahrenheit: false,
  windSpeed: 5.9,
  kmH: false,
  ms: false,
  mph: false,
  returnFahrenheit: false,
  returnCelcius: true
});
// -7.725265477224572;

at.heatIndex({
  t: -5,
  withCelcius: true,
  withFahrenheit: false,
  windSpeed: 5.9,
  kmH: false,
  ms: false,
  mph: false,
  returnFahrenheit: false,
  returnCelcius: true
});
1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago