This library provides helpers for energy performance of buildings computation.
npm i epb
Get the energy class (like A++, A+, A, B...) following the regulator rules, given the energy consumption.
If the energy class cannot be calculated from the provided data, null is returned.
const consumption = 100 const ecls = await energyClass('brussels', consumption) // ecls === "C+"
Currently supported:
brusselsflanders(exception: energy classes are not used in Flanders)francewallonia
Get the total consumption of a building in a year, given its energy consumption and its total area.
const consumption = 100 const area = 250 const total = totalConsumption(consumption, area) // total === 25000