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

mac-keyboard

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

mac-keyboard

Enables you to create virtual keyboard input on Mac OS X using Cocoa.

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

mackeyboard

A node.js module that enables you to create virtual keyboard input on Mac OS X. See in [npmjs.js] (https://www.npmjs.org/package/mac-keyboard)

Credits

Uses NodObjC to hook into the Cocoa framework. The mackeyboard module is merely a wrapper around key control commands to the Cocoa framework via NodObjC. Special thanks to Loknar

Installation

Install using npm,

$ npm install mac-keyboard

Usage Example


var pressKey = function(key){
    // Key to press
    key = key || 125;

    // Keyboard key event
    var keyEvent = $.CGEventCreateKeyboardEvent(null, key, true);
    
    // Fire event
    $.CGEventPost($.kCGHIDEventTap, keyEvent);

    console.log("Key fired: ", key);
}

Keyboard Codes

Keyboard Keys

License

(MIT License)

Keywords

FAQs

Package last updated on 11 Oct 2016

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