DenoDDeno
Powered by
Ed, Edd n EddyE
Denoβ€’3y agoβ€’
20 replies
Ed, Edd n Eddy

Migrating `Deno.run` to `Deno.command` with `readlines`

I had the following:

 browserProcess = Deno.run({
  cmd: buildArgs, // eg chrome exe path, then options
  stderr: "piped",
  stdout: "piped",
});
for await (const line of readLines(browserProcess.stderr!)) {
 browserProcess = Deno.run({
  cmd: buildArgs, // eg chrome exe path, then options
  stderr: "piped",
  stdout: "piped",
});
for await (const line of readLines(browserProcess.stderr!)) {


Now i'm wondering what the best way to do this with
Deno.command
Deno.command
is?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Migrating from Deno.run to Deno.command, how to readLines?
Ed, Edd n EddyEEd, Edd n Eddy / help
2y ago
Seeking help migrating from Deno.run to Deno.Command with spawn
Brandon KalinowskiBBrandon Kalinowski / help
2y ago
Run `nvm` using Deno.Command
bombillazoBbombillazo / help
3y ago