Skip to content

Eugeny/macos-native-processlist

Repository files navigation

macos-native-processlist

Build

Loads list of processes on macOS natively, without any bullshit ps output parsing

Usage

import { getProcessList } from 'macos-native-processlist'

getProcessList().then(processes => {
  for (let process of processes) {
    console.log(process.pid, process.name, process.children.length)
  }
})

For the full API look at the typings file.