water-intake-api
v1.0.0
Published
API to calculate daily water intake based on age, weight, and activity level.
Maintainers
Readme
💧 Water Intake Calculator API
This is a simple Node.js + Express API that calculates the recommended daily water intake based on user's age, weight, and activity level.
🚀 Features
- Calculates water intake in liters and milliliters.
- Considers:
- Age (adjusts intake for 30+ and 55+)
- Weight (base intake is 35 ml/kg)
- Activity Level (optional:
moderate,high)
const { water_intake } = require("water-intake-api");
const {age,weight,activityLevel}=req.body;
const result = await water_intake(age,weight,activityLevel);
exp
{
"age": 70,
"weight": 65,
"activityLevel": "moderate"
}
