https://github.com/billykirk01/lifx-http
A thin wrapper around the Lifx HTTP protocol. Built in Deno.
https://github.com/billykirk01/lifx-http
deno lifx-lights svelte typescript
Last synced: 2 months ago
JSON representation
A thin wrapper around the Lifx HTTP protocol. Built in Deno.
- Host: GitHub
- URL: https://github.com/billykirk01/lifx-http
- Owner: billykirk01
- Created: 2021-03-28T21:49:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-02T22:02:08.000Z (over 4 years ago)
- Last Synced: 2025-03-10T00:14:55.243Z (over 1 year ago)
- Topics: deno, lifx-lights, svelte, typescript
- Language: TypeScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](http://api.developer.lifx.com/).
- Makes use of native Fetch API's and pure Typescript ES Modules so it's perfect
for a server side framework like [Deno](https://deno.land/) or for a client
side application (like [this](https://github.com/wkirk01/LIFX-Svelte) one that
I've built using [Svelte](https://svelte.dev/)).
## 📦 Importing
```typescript
import { lifxClient } from "https://deno.land/x/lifxhttp/mod.ts";
```
## 📖 Example Usage
```typescript
const client = new lifxClient({
token: "",
});
console.log(await client.getLights("all"));
```