has

Checks presence of various command-line tools and their versions

brewmacoslinux
Try with needOr install directly
Source

About

Checks presence of various command-line tools and their versions on the path

Commands

has

Examples

Check if git is installed and working$ has git
Check multiple tools at once$ has git node python docker
Verify tool versions are installed$ has ruby python3 npm