@serialport/bindings

The Binding is how Node-SerialPort talks to the underlying system. By default, we auto detect Windows, Linux and OS X, and load the appropriate module for your system. You can assign SerialPort.Binding to any binding you like. Find more by searching "serialport-binding" at npm.

Usage no npm install needed!

<script type="module">
  import serialportBindings from 'https://cdn.skypack.dev/@serialport/bindings';
</script>

README

@serialport/Bindings

The Binding is how Node-SerialPort talks to the underlying system. By default, we auto detect Windows, Linux and OS X, and load the appropriate module for your system. You can assign SerialPort.Binding to any binding you like. Find more by searching "serialport-binding" at npm.

Learn more at our bindings documentation page.

Android users

When using termux there is a way to compile serialport to be used under Android

CFLAGS=-fPIC CXXFLAGS=-fPIC yarn rebuild