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

choo-kanye

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

choo-kanye

choo-kanye

  • 0.0.1
  • Source
  • npm
  • Socket score

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

choo-kanye

easily add kanye keyboard shortcuts to your choo app


Install

npm install --save choo-kanye

Usage

API

This module implements the kanye API using choo events.

Any kanye events received before the DOM is loaded are buffered until they can be registered.

Events choo-kanye listens to:

  • kanye:on args: combo, options?, listener
  • kanye:off args: combo, options?, listener
  • kanye.clear args: context?

Example

var app = require('choo')

choo.use(require('choo-kanye'))

choo.use(function(state, bus) {
  var sayhi = function () {
    console.log('hi!')
  }
  // run sayhi when the user presses ctrl+shift+a while element with id 'main' is the target
  bus.emit('kanye:on', 'ctrl+shift+a', { filter: '#main' }, sayhi))
})

License

To the extent possible by law, we transfer any rights we have in this code to the public domain. Specifically, we do so using the CC0 1.0 Universal Public Domain Dedication.

You can do whatever you want with this code. No need to credit us, link to us, include any license, or anything else. But if you want to do those things, you're free to do that too.

FAQs

Package last updated on 02 Jul 2017

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