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.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

electron-blink1-toy

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

Tested on Electron v8+

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

To use:

npm install
npm run pack
npm run start

To build the application:

npm install
npm run pack
npm run dist

screenshot

Note:

On certain OS + Electron version combinations, node-hid will need to be recompiled for Electron, so you will need C compiler installed.
This is not normally needed for Mac & Windows.

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)
Previous version:

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

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

Keywords

FAQs

Package last updated on 23 Aug 2020

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