shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- command*-String
The command to check like “ls”, “node”, etc…
Return
- -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'); // => trueTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space