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

ctrlkit

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

ctrlkit

A simple JS interface library for interacting with CTRLKit

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

🧠 ctrlkit ✨

⚠️ THIS PROJECT IS PRE-ALPHA, EVERYTHING WILL BREAK BECAUSE I'M STILL FIGURING OUT THE API SURFACE ⚠️

Exposes a few things useful for interacting with CTRL-Labs' CTRLKit.

  • A customEvents object — currently only contains the fingerTapped event (listened for as fingertapped)
  • A Socket class that starts up a WebSocket. You can customize how a CTRL.Socket responds to data & errors using the following methods:
    • setOnOpen(onOpenFunction)
    • setOnError(onErrorFunction)
    • setOnMessage(onMessageFunction)
  • Finally, a rudimentary parseTapData function that parses tap data for you. Eventually this should be a function support all the gestures that CTRL supports, but I'm starting small.

To install all the dependencies run:

npm install

To update the examples:

npm run update-docs

Keywords

FAQs

Package last updated on 09 Oct 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