Creating a subprocess

    • Deno is capable of spawning a subprocess via Deno.run.
    • Spawned subprocesses do not run in a security sandbox.
    • Communicate with the subprocess via the , stdout and streams.

    `

    `

    Run it:

    `

    The permission is required for creation of a subprocess. Be aware that subprocesses are not run in a Deno sandbox and therefore have the same permissions as if you were to run the command from the command line yourself.

    By default when you use Deno.run() the subprocess inherits stdin, and stderr of the parent process. If you want to communicate with started subprocess you can use "piped" option.

    `

    When you run it:

    `