0.0.7 • Published 4 years ago

@bazecor-api/focus v0.0.7

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
4 years ago

@bazecor/focus

This is the heart of the Bazecor libraries, the one thing that binds everything together. It implements the Focus protocol used by Kaleidoscope for bi-directional communication, and on top of that, it provides hooks and methods to build complex applications on top.

import Focus from "@bazecor/focus";
import { Model01 } from "@bazecor/hardware-keyboardio-model01";

let focus = new Focus();
focus.open(Model01).then(() => {
  focus.command("help").then((response) => {
    console.log(response);
  });
});