Tom
Tom

Reputation: 371

Pipe script into deno run

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:

Upvotes: 3

Views: 685

Answers (1)

Marcos Casagrande
Marcos Casagrande

Reputation: 40414

Now you can use the following syntax:

cat file.js | deno run -

If you need permissions:

cat file.js | deno run --allow-all -

Upvotes: 2

Related Questions