Skip to main content
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Interface.prototype.close
Re-export
import { Interface } from "https://deno.land/std@0.167.0/node/readline.ts";

The rl.close() method closes the readline.Interface instance and relinquishes control over the input and output streams. When called, the 'close' event will be emitted.

Calling rl.close() does not immediately stop other events (including 'line') from being emitted by the readline.Interface instance.