Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 597 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 597 Bytes

christmas-client-js

JavaScript client library for christmasd.

Example

See christmas-js-example.

Usage

Important

This library only works with ES Modules. Make sure you have "type": "module" in your package.json.

npm i acmCSUFDev/christmas-client-js#main
import { LEDCanvas } from "christmas-client-js";

const canvas = new LEDCanvas("ws://...");
await canvas.connect();
const canvasInfo = await canvas.canvasInfo();
canvas.draw(canvasInfo, image);