You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want a ts-node repl, with all its benefits, with context from my app attached, (note I would in reality attach an imported module, but here am just attaching a variable to illustrate my need minimally.) Since I want context attached to my repl, I am using the node built-in package, repl, like so:
Search Terms
repl
repl.start()
context
double
STDIN
STDOUT
Expected Behavior
STDOUT is not double printed
Actual Behavior
STDOUT is double printed
Steps to reproduce the problem
I want a ts-node repl, with all its benefits, with context from my app attached, (note I would in reality attach an imported module, but here am just attaching a variable to illustrate my need minimally.) Since I want context attached to my repl, I am using the node built-in package,
repl
, like so:example.ts
Maybe this is not best practice, if so, please advise.
If I try to run the script
example.ts
with ts-node, then type the six characters, f,o,o,b,a,r, I see the following output:$ npx ts-node -r ./example.ts > ffoobbaarr
So the bug is that every input is doubled, as I would expect to only see
foobar
.Minimal reproduction
TypeStrong/ts-node-repros#38
Specifications
Mac OSX 13.4
The text was updated successfully, but these errors were encountered: