MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / readlineQuestion

Function readlineQuestion

examples/server/chat.mjs:123–125  ·  view source on GitHub ↗
(rl, query, options)

Source from the content-addressed store, hash-verified

121const rl = readline.createInterface({ input: stdin, output: stdout });
122
123const readlineQuestion = (rl, query, options) => new Promise((resolve, reject) => {
124 rl.question(query, options, resolve)
125});
126
127while(true) {
128 const question = await readlineQuestion(rl, '> ')

Callers 1

chat.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected