@atvise/modular-webmi
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

@atvise/modular-webmi

Modular exports for webmi.js: Re-exports parts of webmi.js with some API improvements (e.g. Promise support), written in TypeScript.

Please note that this currently work in progress.

Installation

Run npm install --save-dev @atvise/modular-webmi to install this package from npm.

Currently it's also required that a working webmi.js is loaded in the browser.

Usage

import { read } from '@atvise/modular-webmi';

read<number>('AGENT.OBJECTS.test')
  .then(({ value }) => console.log('Test, trippled:', value * 3))
  .catch((error) => console.error('Cannot read test', error));

This package is part of the create-atvise-app project.

Refer to it's documentation for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i @atvise/modular-webmi

Weekly Downloads

5

Version

0.2.1

License

MIT

Unpacked Size

28 kB

Total Files

17

Last publish

Collaborators

  • lhechenberger