proctools

OpenBSD and Darwin versions of pgrep, pkill, and pfind utilities

brewmacoslinux
Try with needOr install directly
Source

About

OpenBSD and Darwin versions of pgrep, pkill, and pfind

Commands

pgreppkillpfind

Examples

Find process ID of all processes matching a pattern$ pgrep -l firefox
Kill all processes matching a name$ pkill -f 'node server.js'
Find processes by user and display full details$ pgrep -u username -l