
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
xod-arduino-builder
Advanced tools
This package is a part of the XOD project.
The builder wraps Arduino IDE into nodejs Promise-based cli interface.
packages/ folder must be reachable.Start node cli session:
node
Import the builder and set utility display function:
const xab = require('xod-arduino-builder');
const $HOME = process.env.HOME;
const c = promise => promise.then(
value => (console.log(value), Promise.resolve(value)),
error => (console.error(error), Promise.reject(error))
);
Set paths to Arduino IDE executable and packages:
c(xab.setArduinoIdePathExecutable($HOME + '/programs/arduino-1.8.1/arduino'));
c(xab.setArduinoIdePathPackages($HOME + '/.arduino15/packages'));
View the raw official Arduino package index:
c(xab.listPackageIndex());
View the processed package index optimized for pav selection:
c(xab.listPAVs());
const pav = {
package: 'arduino',
architecture: 'avr',
version: '1.6.16'
};
Install the selected pav:
c(xab.installPAV(pav));
View the boards supported by the selected pav:
c(xab.loadPAVBoards(pav));
const pab = {
package: pav.package,
architecture: pav.architecture,
board: 'uno'
};
Compile the file for the selected pab:
const file = $HOME + '/programs/arduino-1.8.1/examples/01.Basics/Blink/Blink.ino';
c(xab.verify(pab, file));
View the available serial ports:
c(xab.listPorts());
const port = '/dev/ttyACM0';
Compile and upload the file for the selected pab at the specified port:
c(xab.upload(pab, port, file));
FAQs
XOD project: Arduino Builder
The npm package xod-arduino-builder receives a total of 1 weekly downloads. As such, xod-arduino-builder popularity was classified as not popular.
We found that xod-arduino-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.