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

electron-blink1-toy

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-blink1-toy

Play with Electron and node-blink1

  • 0.1.7
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

electron-blink1-toy

A simple Electron app to experiment with node-blink1 & node-hid.

Tested on Electron v1.2.6+.

Assumes you have blink(1) device plugged in before running app.

To use:

npm install
npm start

screenshot

Note:

Because node-hid will need to be recompiled for Electron, you will need compilers for your OS installed.

For more details on what you need, see:

  • https://github.com/nodejs/node-gyp#installation
  • https://github.com/node-hid/node-hid#compiling-from-source

But basically:

  • Mac OS X: Install XCode and enable Command Line Tools
  • Windows: npm install -g --production windows-build-tools ; npm install -g node-gyp (via admin shell)
  • Linux: Python, make, gcc (sudo apt-get install build-essential on Ubuntu)

Uses the magic of require('babel-register') in both the app and renderer to do on-the-fly transpiling

Note: the node-hid library needs to be recompiled for Electron. The electron-rebuild tool does this, and should be done automatically for you via the "postinstall" script of this project.

This project leans heavily on https://github.com/b52/electron-es6-react

Keywords

FAQs

Package last updated on 16 Feb 2019

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