Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arduino-node

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arduino-node

A wrapper of the Arduino IDE binary written in nodeJS

  • 0.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Arduino Node

Travis CI Codecov npm npm version npm dependencies npm dev dependencies

🎁 Cross-Platform Arduino IDE in nodeJS

Install

$ npm install --save arduino-node

Usage

const arduino = require('arduino-node');

const arduLatest = arduino({path: 'bin'});

arduLatest.run(['--verify', './your-project/your-project.ino'], (err, out) => {
  if (err) {
    console.log(err);
    return;
  }
  console.log(out.stdout);
});

const ardu180 = arduino({path: 'bin', version: '1.8.0'});

ardu180.run(['--verify', './your-project/your-project.ino'], (err, out) => {
  if (err) {
    console.log(err);
    return;
  }
  console.log(out.stdout);
});

API

arduino(options)

Creates a new arduino instance.

options

Type: object

version

Type: string
Default: 'latest'

The Arduino IDE version to use.

path

Type: string
Default: 'bin'

The path where Arduino IDE will resides.

.run([arguments], callback)

Runs the Arduino IDE binary. If the binary is not loaded it will also load it.

arguments

Type: array
Default: []

An array of arguments to pass to the Arduino IDE.

callback(err, out)

Type: function

Returns a possible error and the output object.

.load(callback)

Runs the search for the Arduino IDE binary. If no binary is found it will download it from arduino-version.

callback(err)

Type: function

.unload(callback)

Removes downloaded Arduino IDE binary, if present.

callback(err)

Type: function

.bin()

Returns the full path to the Arduino IDE binary.

.path()

Returns the full path where the Arduino IDE will downloaded to.

Authors

  • Simone Primarosa - simonepri

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

FAQs

Package last updated on 31 Jul 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc