New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

window-shortcuts

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

window-shortcuts

macOS only! Get menu shortcuts by window owner name.

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

window-shortcuts

macOS only! Get menu shortcuts by window owner name.

Install

$ npm install window-shortcuts

Usage

Async

import windowShortcuts from 'window-shortcuts'

windowShortcuts('iTerm2')
  .then(shortcuts => {
    console.log(shortcuts)
    /*
    [
      {
        "title": "Preferences...",
        "keys": [
          "Meta",
          ","
        ],
        "group": "iTerm2"
      },
      {
        "keys": [
          "Meta",
          "h",
        ],
        "title": "Hide iTerm2",
        "group": "iTerm2",
      },
      ...
    ]
    */
  })
  .catch(error => console.log(error))

Sync

const shortcuts = windowShortcuts.sync('iTerm2')

Keywords

macos

FAQs

Package last updated on 25 Jan 2022

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