New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

epb

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epb

Energy performance of buildings

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

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

Keywords

belgium

FAQs

Package last updated on 30 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts