isCommandExists

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.is

This function allows you to check if a command exists on the system where the script is running

Params

  1. command*-String

    The command to check like “ls”, “node”, etc…

Return

  1. -Promise

    A promise fullfiled once the check has finished with true of false as value

Example

import { isCommandExists } from '@blackbyte/sugar/is';
await  isCommandExists('ls'); // => true

Todo

  • testsnormal