A simple utility package to convert weather data across various measure units
🏠 Homepage
npm i weather-units-conversion
import { c2f, km2miles } from "weather-units-conversion";
// Conversion from Celsius to Fahrenheit
let fahrenheit = c2f(23.6);
// Conversion from KM to Miles, with 5 decimal positions
let miles = km2miles(11.67, 5);
// Every conversion function is in the format
// <fromUnit>2<toUnit>(val, precision?);
- Celsius (C)
- Fahrenheit (F)
- Kelvin (K)
- HectoPascal (hpa)
- KiloPascal (kpa)
- Inches of Mercury (inhg)
- MilliBar (mb)
- Millimeters (mm)
- Inches (in)
- Meters (m)
- Feet (ft)
- Kilometers (km)
- Miles (miles)
- Nautical Miles (nmiles)
- Meters per second (ms)
- Kilometers per hour (kmh)
- Miles per hour (mph)
- Knots (kts)
👤 Riccardo Rebottini
- Twitter: @ricky_rebo
- Github: @ricky-rebo
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator