running-apps
v1.0.2
Published
[{ pid, comm, app }]
Downloads
7
Readme
running-apps
Get running .app:s.
$ npm install running-apps
Usage
const getApps = require('running-apps')
getApps()
.then(apps => console.log(apps))
.catch(e => console.error(e))
// [
// {
// pid: 1234
// comm: '/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal'
// app: '/Applications/Utilities/Terminal.app'
// },
// ...
// ]
cli
npm install -g running-apps
running-apps
# [
# {
# "pid": "1234",
# "comm": "/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal",
# "app": "/Applications/Utilities/Terminal.app"
# },
# ...
# ]