Skip to content

Compatibility with Node repl module? #5

@carboniris

Description

@carboniris

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions