Socket
Socket
Sign inDemoInstall

zetta-auto-scout

Package Overview
Dependencies
2
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

zetta-auto-scout

A basic Scout for auto-wiring devices in Zetta.


Version published
Maintainers
3
Weekly downloads
4
decreased by-33.33%
Install size
20.3 kB

Weekly downloads

Readme

Source

Zetta Auto Scout

Zetta Auto Scout is a way to initiate a zetta device driver without having to build a generic scout that looks for only a device type.

Install

npm install zetta-auto-scout

Usage


var zetta = require('zetta');
var AutoScout = require('zetta-auto-scout');
var LED = require('zetta-led-mock-driver');

zetta()
  .use(AutoScout, 'led', LED)
  .use(AutoScout, 'led', LED, arg1, arg2) // arg1, arg2 are passed to led driver
  .listen(1337)

Limitation

zetta()
  .use(AutoScout, 'led', LED)
  .use(AutoScout, 'led', LED)
  .listen(1337)

Will only initialize one led driver, zetta thinks that it already exists. You can get around this with adding separate args for each device.

zetta()
  .use(AutoScout, 'led', LED, 1)
  .use(AutoScout, 'led', LED, 2)
  .listen(1337)

Licence

MIT

Keywords

FAQs

Last updated on 07 Jul 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc