Skip to content

add convenience methods to stdio objects in Deno.ChildProcess #30323

@nathanwhit

Description

@nathanwhit

For instance, right now getting the stdout output as text is very non-obvious:

const sub = new Deno.Command("cat", {
  args: ["hello.txt"],
  stdout: "piped",
}).spawn();

const output = await new Response(sub.stdout).text();

it should be simpler, like:

const output = await sub.stdout.text();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions