Skip to content

immoveable/epb-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Energy performance of buildings

This library provides helpers for energy performance of buildings computation.

Installing

npm i epb

Usage

energyClass

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+"

Regulators

Currently supported:

  • brussels
  • flanders (exception: energy classes are not used in Flanders)
  • france
  • wallonia

totalConsumption

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

Packages

No packages published

Contributors 2

  •  
  •