Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eugeny/macos-native-processlist

NodeJS - native macOS process list loader
https://github.com/eugeny/macos-native-processlist

macos n-api nodejs process-management processes system system-status

Last synced: 23 days ago
JSON representation

NodeJS - native macOS process list loader

Awesome Lists containing this project

README

        

# macos-native-processlist

[![Build](https://github.com/Eugeny/macos-native-processlist/actions/workflows/main.yml/badge.svg)](https://github.com/Eugeny/macos-native-processlist/actions/workflows/main.yml)

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

## Usage

```js
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](./typings/macos-native-processlist.d.ts).