npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

@chrysalis-api/focus

0.0.9 • Public • Published

@chrysalis/focus

This is the heart of the Chrysalis 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 "@chrysalis/focus";
import { Model01 } from "@chrysalis/hardware-keyboardio-model01";
 
let focus = new Focus();
focus.open(Model01).then(() => {
  focus.command("help").then((response) => {
    console.log(response);
  });
});

install

npm i @chrysalis-api/focus

Downloadsweekly downloads

12

version

0.0.9

license

GPL-3.0-only

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability