
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Feels allow you to calculate apparent temperature using heat index, approximate wet-bulb globe temperature, humidex, australian apparent temperature and wind chill.
Feels
allow you to calculate apparent temperature using heat index, approximate wet-bulb globe temperature, humidex, australian apparent temperature and wind chill.
Combinations of this methods also named as Feels like
, Real feel
etc.
You can also convert temperature, speed and calculate relative humidity
, dew point
, frost point
, water vapour pressure
using class or standalone methods.
$ npm install feels --save
const Feels = require('feels');
const config = {
temp: 20,
humidity: 85,
speed: 20,
units: {
temp: 'c',
speed: 'mps'
}
};
new Feels(config).like();
Most of the class methods also available as standalone methods.
Constructor.
Celsius
, Fahrenheit
or Kelvin
, depends on units type.Celsius
, Fahrenheit
, Kelvin
depends on units type.hPa
.true
, rounds the result using Math.round
.c
, f
, k
(by default c
).mps
, mph
, kph
(by default mps
).const Feels = require('feels');
new Feels({ temp: 20, humidity: 80.9 }).toF().humidex();
Sets the options.
Celsius
, Fahrenheit
or Kelvin
, depends on units type.Celsius
, Fahrenheit
, Kelvin
depends on units type.hPa
.true
, rounds the result using Math.round
.c
, f
, k
(by default c
).mps
, mph
, kph
(by default mps
).const Feels = require('feels');
const feels = new Feels();
const config = {
temp: 20,
humidity: 85,
speed: 20,
units: {
temp: 'c',
speed: 'mps'
}
};
feels.setOptions(config);
feels.AAT();
Calculates apparent temperature using specified methods.
If methods aren't provided returns an index which is calculated with ['HI', 'HI_CA', 'AAT', 'WCI']
.
If you want to convert temperature from one to other temperature scale, you can place .toC()
, .toF()
or .toK()
before target method.
new Feels(config).toF().like(['AAT', 'HI_CA']);
Adds new method, which can be used by itself or in .like()
.
const feels = new Feels();
feels.addMethod('newbie', () => (feels.heatIndex() + feels.humidex()) / 2);
feels.addMethod('newbie2', function () {
return (this.heatIndex() + this.humidex()) / 2;
});
feels.setOptions({ temp: 20, dewPoint: 18 });
feels.newbie();
feels.like(['AAT', 'newbie2']);
Allows you to create your own methods which can be used in .like()
, by inheriting the base class.
class NewFeels extends Feels {
constructor(opts) {
super(opts);
this.registerMethods(['newbie', 'newbie2']);
}
newbie() {
return (this.heatIndex() + this.humidex()) / 2;
}
newbie2() {
return (this.heatIndex() + this.humidex()) / 2;
}
}
const feels = new NewFeels({ temp: 20, dewPoint: 18 });
feels.newbie();
feels.like(['AAT', 'newbie2']);
All standalone methods use temperature in Celsius, humidity in percent and wind speed in meters per second.
const Feels = require('feels');
Feels.humidex(20, 80.9);
c
- Celsius, f
- Fahrenheit, k
- Kelvin.c
- Celsius, f
- Fahrenheit, k
- Kelvin.true
, rounds the result using Math.round
.const Feels = require('feels');
const humidex = Feels.humidex(20, 80.9);
Feels.tempConvert(humidex, 'c', 'f');
mps
- Metre per second, mph
- Miles per hour, kph
- Kilometre per hour.mps
- Metre per second, mph
- Miles per hour, kph
- Kilometre per hour.true
, rounds the result using Math.round
.const Feels = require('feels');
const speed = Feels.speedConvert(36, 'kph', 'mps');
Feels.AAT(20, speed, 89);
The heat index is an index that combines air temperature and relative humidity in an attempt to determine the human-perceived equivalent temperature. Wiki
Note: The heat index is used for temperatures more than 20 Celsius.
true
for dew point usage.true
, rounds the result using Math.round
.The approximate wet-bulb globe temperature is a composite temperature used to estimate the effect of temperature, humidity, wind speed on humans. Unlike WBGT, AWBGT not take into account radiation effect. Wiki
Note: The AWBGT is used for temperatures more than 15 Celsius.
true
for dew point usage.true
, rounds the result using Math.round
.The humidex is an index number used by Canadian meteorologists to describe how hot the weather feels to the average person, by combining the effect of heat and humidity. Wiki
Note: The humidex is used for temperatures more than 0 Celsius.
true
for dew point usage.true
, rounds the result using Math.round
.The AAT is an index number used by the Australian Bureau of Meteorology to describe heat balance in the human body. Wiki
true
for dew point usage.true
, rounds the result using Math.round
.Wind chill is the perceived decrease in air temperature felt by the body on exposed skin due to the flow of air. Wiki
Note: The humidex is used for temperatures less than 0 Celsius.
true
, rounds the result using Math.round
.true
, rounds the result using Math.round
.true
, rounds the result using Math.round
.true
, rounds the result using Math.round
.true
for dew point usage.true
, rounds the result using Math.round
.true
, rounds the result using Math.round
.true
, rounds the result using Math.round
.true
, rounds the result using Math.round
.The MIT License (MIT)
Copyright (c) 2015-2018 Alexey Bystrov
FAQs
Feels allow you to calculate apparent temperature using heat index, approximate wet-bulb globe temperature, humidex, australian apparent temperature and wind chill.
The npm package feels receives a total of 45 weekly downloads. As such, feels popularity was classified as not popular.
We found that feels demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.