New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

blync

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blync

Blynclight module for Node.js using node-hid.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Blync for Node.js

This library lets you control a Blync (RGB led for USB).

Installation

Prerequisites

We use the NPM module node-hid which has a few dependencies:

  • Mac OS (I use 10.6.8) or Linux (kernel 2.6+) or Windows XP+
  • libudev-dev (Linux only)
  • libusb-1.0-0-dev (Ubuntu versions missing libusb.h only)

Ubuntu

sudo apt-get install libudev-dev libusb-1.0-0-dev
npm install blync

MacOS

// TODO

Usage

var blync = require('blync');

// How many Blyncs are hooked up?
var deviceCount = blync.getDevices().length;

var device = blync.getDevice(0);

// Make Blync light up in red
device.setColor('red');

// Make Blync blink in blue for 250 milliseconds
device.blinkColor('blue', 250);

// Turn Blync off when you exit
process.on( 'SIGINT', function() {
  device.turnOff();
  process.exit(0);
});

Keywords

FAQs

Package last updated on 12 Mar 2014

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