UNPKG

@intruder-detection/shelly-api-typescript

Version:

Typescript client for the Shelly HTTP API

22 lines (14 loc) 499 B
# Shelly API Typescript Strongly typed Shelly API client written in Typescript ## Install You can install it in a Typescript/Javascript project by doing the following: ```bash npm i @intruder-detection/shelly-api-typescript ``` ## Usage ```ts import { ShellyGen2PlusHTTPAPI, ShellyMethods } from '@intruder-detection/shelly-api-typescript'; const gen2Device = new ShellyGen2PlusHTTPAPI('192.168.1.10'); const status = await gen2Device.post(ShellyMethods.GetStatus); console.log(status); ```