epb

1.2.0 • Public • Published

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

Package Sidebar

Install

npm i epb

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

6.09 kB

Total Files

4

Last publish

Collaborators

  • arthurwhite