by johannes1234321 · 5y ago · 0 comments
2) why the cat? It just pipes the stuff through
3) you can use <<< to pipe something to stdin (`node <<< 1+1`)
For example:
$ alias add_repl='deno repl --eval "const add = (a, b) => a + b"'
...
$ add_repl
Deno 1.13
exit using ctrl+d or close()
> add(1, 2)
3In other words they are talking about initiating a REPL session with some initial input followed by manual input.