node-draftlog icon indicating copy to clipboard operation
node-draftlog copied to clipboard

Compatibility with Node repl module?

Open carboniris opened this issue 8 years ago • 0 comments

Here's a naive attempt at writing a Node REPL which shows the output of each command on the same line every time:

const repl = require('repl')
require('draftlog').into(console)
const update = console.draft('Starting REPL...')
repl.start({prompt:update})

And the output looks like this: https://asciinema.org/a/U0y4BMlqxMlhQLE2QE1szHiFi

carboniris avatar Jul 04 '17 21:07 carboniris