@elgato/cli
Version:
Stream Deck CLI tool for building with Stream Deck.
13 lines (8 loc) • 481 B
text/typescript
import streamDeck, { LogLevel } from "@elgato/streamdeck";
import { IncrementCounter } from "./actions/increment-counter";
// We can enable "trace" logging so that all messages between the Stream Deck, and the plugin are recorded. When storing sensitive information
streamDeck.logger.setLevel(LogLevel.TRACE);
// Register the increment action.
streamDeck.actions.registerAction(new IncrementCounter());
// Finally, connect to the Stream Deck.
streamDeck.connect();