nx.js
Classes

REPL

Constructors

new REPL()

new REPL(writer, opts?): REPL

Parameters

ParameterType
writerWritableStreamDefaultWriter<Uint8Array>
opts?REPLOptions

Returns

REPL

Properties

PropertyTypeDefault value
bufferstring''
cursorPositionnumber0
historystring[]undefined
historyIndexnumber0
inspect(v: unknown) => stringundefined
promptstringundefined
writerWritableStreamDefaultWriter<Uint8Array>undefined

Methods

arrowDown()

arrowDown(): Promise<void>

Returns

Promise<void>


arrowLeft()

arrowLeft(): Promise<void>

Returns

Promise<void>


arrowRight()

arrowRight(): Promise<void>

Returns

Promise<void>


arrowUp()

arrowUp(): Promise<void>

Returns

Promise<void>


backspace()

backspace(): Promise<void>

Returns

Promise<void>


print()

print(str): Promise<void>

Parameters

ParameterType
strstring

Returns

Promise<void>


renderPrompt()

renderPrompt(extra): Promise<void>

Parameters

ParameterTypeDefault value
extrastring''

Returns

Promise<void>


submit()

submit(): Promise<void>

Returns

Promise<void>


write()

write(data): Promise<void>

Parameters

ParameterType
dataUint8Array

Returns

Promise<void>

On this page