arduino-cli-node

#Still in the _VERY_ early stages. ###See cli/demo.js for some example like material (no examples yet).

Usage no npm install needed!

<script type="module">
  import arduinoCliNode from 'https://cdn.skypack.dev/arduino-cli-node';
</script>

README

ARDUINO CLI NODE.JS WRAPPER

Still in the VERY early stages.

See cli/demo.js for some example like material (no examples yet).

Constructor Options:

  • config
    • Path to custom arduino yaml config file
  • ready
    • bypass environment setup checks (increases likelyhood of failure due to race conditions or non-configured board)
  • searchPaths
    • Array of paths (relative to the cwd where sketch named directories can be found. Selects the first match if only a name but not a path is supplied)
  • arduinoCliPath
    • absolute path to Arduino-Cli (I hope to be able to provide binaries in the future); Example:

{ config: configFile, ready: true, searchPaths: ['./demo_sketch_alt/', './demo_sketch/'] }