Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

make repl generic #9224

Closed
piranna opened this issue Feb 14, 2015 · 2 comments
Closed

make repl generic #9224

piranna opened this issue Feb 14, 2015 · 2 comments

Comments

@piranna
Copy link

piranna commented Feb 14, 2015

Node.js REPL module is mostly intended to create Javascript interpreters, but with some minominor changes (mostly move out the Javascript sanitiziers to the caller functions) would be used as a powerful general purpose REPL to be used for command lines inside apps, similar to how Python cmd & cmd2 packages can be used.

@a8m
Copy link

a8m commented Feb 14, 2015

I think you're asking for something like readline module @piranna

@piranna
Copy link
Author

piranna commented Feb 14, 2015

Not exactly, on nsh we were using readline but moved to repl because readline was too simple and low level (and at the end, repl inherit from it :-D), I'm only asking about thing like the wrapping of the input command with parenthesis should be moved out and allow to get the raw input without loosing the other features. On nsh, we are doing it by monkeypatching the repl instance and get as a separate function the async eval, that's why I'm asking about this... :-/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants