Skip to content

how to check shell command if exists? #10650

@skanehira

Description

@skanehira

I want to check shell command if exists with deno but there is no way?

In my mind is bellow.

if (executable("vim")) { // do something }

I try to found functions but I couldn't found it form modules.

https://deno.land/std@0.96.0/path
https://deno.land/std@0.96.0/fs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions