MCPcopy Index your code
hub / github.com/nodejs/node / getInterface

Function getInterface

test/parallel/test-readline-promises-interface.js:33–41  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

31}
32
33function getInterface(options) {
34 const fi = new FakeInput();
35 const rli = new readline.Interface({
36 input: fi,
37 output: fi,
38 ...options,
39 });
40 return [rli, fi];
41}
42
43function assertCursorRowsAndCols(rli, rows, cols) {
44 const cursorPos = rli.getCursorPos();

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…