1.0.10 • Published 3 years ago

microprediction v1.0.10

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

Microprediction for TypeScript/Node.js

An implementation of a Microprediction.org client using TypeScript and Node.js.

Installation

npm install microprediction

Usage

The code in test/test.js tests all of the usage of MicroReader and MicroWriter.

An example to retrieve the latest value of a stream:

let reader: MicroReader;
let config: MicroReaderOptions;
const test_stream_name = "South_Australia_Electricity_Price.json";
config = await MicroReaderConfig.create({});
reader = new MicroReader(config);

const result = await reader.get_current_value(test_stream_name);