I have an executable that generates javascript that I'd like to pipe into deno run, however the run subcommand only seems to take a script path as an argument, and doesn't support the usual convention of - to read from stdin.
Workarounds that I'm aware of but not satisfied with:
deno rundeno repl (this prints a bunch of repl garbage along with the desired script output)deno eval (my generated javascript is large... feels icky to provide as a command line argument)Now you can use the following syntax:
cat file.js | deno run -
If you need permissions:
cat file.js | deno run --allow-all -
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With