-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
clirelated to cli/ dirrelated to cli/ dirsuggestionsuggestions for new features (yet to be agreed)suggestions for new features (yet to be agreed)
Description
I'm trying to have deno output some information to file descriptor 3, so I am spawning deno
like so:
$ deno run example.ts 3>three.txt
I have it working as expected by using /dev/fd/3
:
const fd = Deno.openSync('/dev/fd/3', { read: false, write: true });
Deno.writeAllSync(fd, new TextEncoder().encode('hello'));
Deno.close(fd.rid);
Ok fine, good. But what I am really interested is learning the proper way to do this in a cross-platform way that will work on Windows.
Thanks in advance!
mwgamble and septatrix
Metadata
Metadata
Assignees
Labels
clirelated to cli/ dirrelated to cli/ dirsuggestionsuggestions for new features (yet to be agreed)suggestions for new features (yet to be agreed)