@cityssm/green-button-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Green Button® Parser for Node

npm (scoped) DeepSource Maintainability codecov

Parse Green Button® formatted energy consumption feeds into JSON.

Features

  • Fully typed output.
  • Support for Green Button® XML containing full feeds and single entries.
  • Enumerated values translated to meaningful text.
  • Helpful functions to link things together.

Important Note

This code is for use with the Green Button Download My Data® (DMD) standard, or with Green Button® formatted XML.

💡 If you are looking to subscribe to Green Button® data using the Green Button Connect My Data® (CMD) standard, see the City of Sault Ste. Marie's Green Button® Subscriber.

💡 If you are looking for a full application to report on energy usage, see EMILE (Energy Monitoring in Less Effort).

Installation

npm install @cityssm/green-button-parser

Usage

import { atomToGreenButtonJson } from '@cityssm/green-button-parser'

const greenButtonJson = await atomToGreenButtonJson('<feed> ... </feed>')

Trademarks

® GREEN BUTTON is a registered trademark owned by Departments of the U.S. Government.

The City of Sault Ste. Marie is a Liaison member of the Green Button Alliance.

Package Sidebar

Install

npm i @cityssm/green-button-parser

Weekly Downloads

15

Version

1.0.0

License

MIT

Unpacked Size

220 kB

Total Files

39

Last publish

Collaborators

  • dgowans