pidof

Install command:
brew install pidof

Display the PID number for a given process name

http://www.nightproductions.net/cli.htm

/api/formula/pidof.json (JSON API)

Formula code on GitHub

Bottle (binary package) installation support provided for macOS releases:

Intel big sur
catalina
mojave
high sierra
sierra
el capitan
Apple Silicon big sur

Current versions:

stable 0.1.4

Analytics:

Installs (30 days)
pidof 435
Installs on Request (30 days)
pidof 428
Build Errors (30 days)
pidof 0
Installs (90 days)
pidof 1,326
Installs on Request (90 days)
pidof 1,299
Installs (365 days)
pidof 5,944
Installs on Request (365 days)
pidof 5,863
Fork me on GitHub