j11s
j11s3mo ago

comparable functionality to node:repl in deno?

According to https://docs.deno.com/api/node/repl/ this Node API is currently not implemented in Deno (yet?). Is there anything comparable today? In particular, I'm interested in building my own custom REPLServer -- with a custom eval and custom completer. Is there a plan to support this Node API in the future?
Deno
repl - Node - Deno Docs
In-depth documentation, guides, and reference materials for building secure, high-performance JavaScript and TypeScript applications with Deno
1 Reply
Leokuma
Leokuma3mo ago
I don't think there's anything comparable at the moment I found this feat request: https://github.com/denoland/deno/issues/6311
GitHub
Starting REPLServer manually · Issue #6311 · denoland/deno
Node has: https://nodejs.org/api/repl.html#repl_repl_start_options So I can simply start a webserver and spawn a REPL in the same context to manipulate the server object for example: require("...

Did you find this page helpful?