Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
readline
ReadLine
Interface ReadLine
Hierarchy
NodeEventEmitter
ReadLine
Index
Methods
addListener
close
emit
listeners
on
once
pause
prompt
question
removeAllListener
removeListener
resume
setMaxListeners
setPrompt
write
Methods
public
addListener
(
event
:
string
, listener
:
Function
)
:
any
Parameters
event:
string
listener:
Function
Returns
any
public
close
(
)
public
emit
(
event
:
string
, arg1
?:
any
, arg2
?:
any
)
Parameters
event:
string
arg1?:
any
optional
arg2?:
any
optional
public
listeners
(
event
:
string
)
:
Array<{ Function: any; }>
Parameters
event:
string
Returns
Array<{ Function: any; }>
public
on
(
event
:
string
, listener
:
Function
)
:
any
Parameters
event:
string
listener:
Function
Returns
any
public
once
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
public
pause
(
)
public
prompt
(
preserveCursor
?:
boolean
)
Parameters
preserveCursor?:
boolean
optional
public
question
(
query
:
string
, callback
:
Function
)
Parameters
query:
string
callback:
Function
public
removeAllListener
(
event
:
string
)
Parameters
event:
string
public
removeListener
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
public
resume
(
)
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
public
setPrompt
(
prompt
:
string
, length
:
number
)
Parameters
prompt:
string
length:
number
public
write
(
data
:
any
, key
?:
any
)
Parameters
data:
any
key?:
any
optional
Globals
assert
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
os
path
punycode
querystring
readline
repl
stream
string_decoder
tls
tty
url
util
vm
zlib
ReadLine
addListener
close
emit
listeners
on
once
pause
prompt
question
removeAllListener
removeListener
resume
setMaxListeners
setPrompt
write
ReadLineOptions
createInterface