This repository contains both the JS/TS version of the hAPI (Haply's API for the 2diy)
It also contains some examples.
The Typescript version of the code is available under src
.
To build the Javascript version to dist
, run the following commands:
npm ci
npx tsc
Note that both the JS and TS versions rely on the Web Serial API, and therefore will only work in Chromium-based browser environments.