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

node-missile

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-missile

Control the Syntek USB Missile Launcher

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Syntek USB Missile Launcher

This library uses usb to control the Syntek USB Missile Launcher.

Make sure you setup USB permissions and install prereqs before installing the module.

USB permissions:

Add an udev rules file:

/etc/udev/rules.d/90-missile-launcher.rules

SUBSYSTEM=="usb",ATTRS{idVendor}=="2123",ATTRS{idProduct}=="1010",MODE="0660",GROUP="usb",SYMLINK+="missile-launcher%n"

Make sure you are member of the group usb

Prereqs for building node usb module

sudo apt install build-essential libudev-dev

Usage

The library exposes the commands up, down, left, right, fire and stop.

All commands return promises.

Example usage, point upwards, then stop after 300ms and shoot:

const missile = require('node-missile')

missile.connect().then(launcher => {
  console.log('connected');

  return launcher.up()
    .then(() => {
      console.log('moving up...');

      setTimeout(() => {
        console.log('fireing!');

        launcher.stop()
          .then(() => launcher.fire())
          .catch(console.error);
      }, 300);
    });
}).catch(console.error);

FAQs

Package last updated on 23 Feb 2018

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