command-exists

check whether a command line command exists in the current environment

Browse on unpkg