Hi @garrows , do I need to convert the module with browserify?
I convert the module firstly:
browserify index.js > browser-serialport.js
When I try to get the serialPort in the html, but there is error say cannot find:
<script src="require-2.2.0.js"></script>
<script src="browser-serialport.js"></script>
<script>
var SerialPort = require("browser-serialport").SerialPort;
</script>
Where is wrong?