Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eugeny/macos-native-processlist
- Owner: Eugeny
- Created: 2018-10-23T09:39:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-13T04:58:39.000Z (almost 2 years ago)
- Last Synced: 2024-12-09T12:44:25.962Z (25 days ago)
- Topics: macos, n-api, nodejs, process-management, processes, system, system-status
- Language: C++
- Homepage:
- Size: 157 KB
- Stars: 22
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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).