Tuesday 27 December 2016

How can I wrap commands to a custom repl server?

Hi there, I'm running a custom REPL server like so:myrepl = require("repl").start() How can I wrap any command-line commands to it in a specific text? I'd like to just demo an idea, and wrap every command in a try catch. Thanks!

Submitted December 28, 2016 at 05:29AM by basiclaser

No comments:

Post a Comment