Node.jsReadline

Syntax

  • const readline = require('readline')
  • readline.close()
  • readline.pause()
  • readline.prompt([preserveCursor])
  • readline.question(query, callback)
  • readline.resume()
  • readline.setPrompt(prompt)
  • readline.write(data[, key])
  • readline.clearLine(stream, dir)
  • readline.clearScreenDown(stream)
  • readline.createInterface(options)
  • readline.cursorTo(stream, x, y)
  • readline.emitKeypressEvents(stream[, interface])
  • readline.moveCursor(stream, dx, dy)

Related Examples