Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rustyconover/microprediction-node
A Microprediction.org client implementation that uses TypeScript.
https://github.com/rustyconover/microprediction-node
Last synced: 9 days ago
JSON representation
A Microprediction.org client implementation that uses TypeScript.
- Host: GitHub
- URL: https://github.com/rustyconover/microprediction-node
- Owner: rustyconover
- Created: 2020-07-24T23:40:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T16:13:08.000Z (over 1 year ago)
- Last Synced: 2024-10-04T00:13:31.066Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 351 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Microprediction for TypeScript/Node.js
An implementation of a [Microprediction.org](https://microprediction.org) client using TypeScript and Node.js.
## Installation
```sh
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:
```js
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);
```