Readline

Download node.js eBook

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

Stats

265 Contributors: 4
Monday, July 3, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook