billykirk01 / lifx-http

A thin wrapper around the Lifx HTTP protocol. Built in Deno.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lifx-http

This library is not, in any way, affiliated or related to Lifi Labs, Inc.. Use at your own risk.

✨ Features

  • Thin wrapper of the Lifx HTTP protocol.

  • Makes use of native Fetch API's and pure Typescript ES Modules so it's perfect for a server side framework like Deno or for a client side application (like this one that I've built using Svelte).

📦 Importing

import { lifxClient } from "https://deno.land/x/lifxhttp/mod.ts";

📖 Example Usage

const client = new lifxClient({
  token: "<Your LIFX API Token>",
});

console.log(await client.getLights("all"));

About

A thin wrapper around the Lifx HTTP protocol. Built in Deno.


Languages

Language:TypeScript 100.0%