@johnlindquist/mac-frontmost
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

@johnlindquist/mac-frontmost

Get the frontmost application on macOS

import { getFrontmostApp } from "@johnlindquist/mac-frontmost"

console.log(getFrontmostApp())
/* Example return type:
{
  localizedName: 'iTerm2',
  bundleIdentifier: 'com.googlecode.iterm2',
  bundleURLPath: '/Applications/iTerm.app',
  executableURLPath: '/Applications/iTerm.app/Contents/MacOS/iTerm2',
  isFinishedLaunching: true,
  processIdentifier: 92918,
  x: 45,
  y: 72,
  width: 885,
  height: 849
}
*/

Readme

Keywords

none

Package Sidebar

Install

npm i @johnlindquist/mac-frontmost

Weekly Downloads

38

Version

1.0.7

License

ISC

Unpacked Size

400 kB

Total Files

22

Last publish

Collaborators

  • johnlindquist