Migrating `Deno.run` to `Deno.command` with `readlines`
I had the following:
Now i'm wondering what the best way to do this with
Deno.command
is?15 Replies
child.readable.pipeThrough(new TextLineStream())
child being command.spawn()
and TextLineStream
from https://deno.land/std@0.198.0/streams/mod.ts?s=TextLineStream🙏 thanks 🙂 been like 2+ years since ive touched deno so a lot has changed and not familiar with it all
not that long, right 🤔
its been a while, but cant be 2 years
i dont think i touched deno/drashland shortly after my new job which was 2 years and one month ago so oculd be 1y 10m, though maybe i stopped later than i thought
good to see your face though 😛
yea same! I saw you every now and then in destiny's channel talking with Okku, but its been a while since that as well
was excited to see where destiny went, but wanna get back into deno again
although:
error: TS2339 [ERROR]: Property 'readable' does not exist on type 'ChildProcess'.
, deno v1.36.1, windowsah whoops
stdout
still
:/
Ah, first you have to pipe through a TextDecoderStream (built-in)
gotcha
And then through the line stream
confused, where am i using TextLineStream?
oh it hink i see
browserProcess.stdout.pipeThrough(new TextDecoderStream()).pipeThrough(new TextLineStream())
Thanks 🙏 dont suppose you'd know the ChildProcess equivelent of
? Tried the ai helper and got:
but it hangs on line 2
nvm got it sorted
Hey @ededdneddy9188, do you have an example of your conversion of this? I tried this but it exits immediately https://discord.com/channels/684898665143206084/1131635673217118248/1149868174678958110