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

https://github.com/x13a/libproc-swift

Swift wrapper for proc library
https://github.com/x13a/libproc-swift

macos osx swift

Last synced: about 1 year ago
JSON representation

Swift wrapper for proc library

Awesome Lists containing this project

README

          

# libproc-swift

Swift wrapper for `proc` library.

## Example

```swift
import Darwin
import Proc

func main() throws {

// To get pid path:
let path = try Proc.pidPath(getpid()).get()
print(path)

// To list all pids:
let pids = try Proc.listAllPids().get()
print(pids)

// To get `proc_bsdinfo`:
let info = try Proc.pidInfo(proc_bsdinfo.self, getpid(), 0).get()
print(info)
}

main()
```