0.2.0 • Published 3 years ago
webserial v0.2.0
webserial
Experimental: Requires Node.js 16.5.0 or newer.
Web Serial API for Node.js.
Using this module:
'use strict';
const { Serial, SerialPort, registerGlobals } = require('webserial');
registerGlobals(globalThis);
console.log(globalThis.navigator.serial);
console.log(globalThis.navigator.serial instanceof Serial);