Skip to main content
readline/promises - Node documentation

Usage in Deno

import * as mod from "node:readline/promises";

Classes

c
Interface

Instances of the readlinePromises.Interface class are constructed using the readlinePromises.createInterface() method. Every instance is associated with a single input Readable stream and a single output Writable stream. The output stream is used to print prompts for user input that arrives on, and is read from, the input stream.

Functions

f
createInterface

The readlinePromises.createInterface() method creates a new readlinePromises.Interface instance.